From d4bba0bc76f0486d0720b8b53859ed70aea32495 Mon Sep 17 00:00:00 2001 From: William Melody Date: Sun, 6 Oct 2024 16:58:54 -0700 Subject: [PATCH] Check for `$MYVIMRC` when setting `termvisage` render style. This variable is set within the embedded vim terminal, whereas `$VIMRUNTIME` is not, at least in current vim. --- nb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nb b/nb index 32ea80f9..fda30a73 100755 --- a/nb +++ b/nb @@ -18823,7 +18823,8 @@ Can't show archives. Export archive and expand to edit.\\n" then local _render_style="auto" - if [[ -n "${VIMRUNTIME:-}" ]] + if [[ -n "${VIMRUNTIME:-}" ]] || + [[ -n "${MYVIMRC:-}" ]] then _render_style="block" elif [[ "${TERM_PROGRAM:-}" == "iTerm.app" ]]