]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(sh): only invoke bash help in ftplugin if it has been detected to be bash...
authorEisuke Kawashima <e-kwsm@users.noreply.github.com>
Mon, 25 Sep 2023 18:40:45 +0000 (03:40 +0900)
committerGitHub <noreply@github.com>
Mon, 25 Sep 2023 18:40:45 +0000 (19:40 +0100)
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/ftplugin/sh.vim

index 4409f3f90c44e0002c366085e10914542a11d991..c227838d18f0668f6431edb40a1aa80cb038a519 100644 (file)
@@ -39,8 +39,7 @@ if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
   let b:undo_ftplugin ..= " | unlet! b:browsefilter"
 endif
 
-if (exists("b:is_bash") && (b:is_bash == 1)) ||
-      \ (exists("b:is_sh") && (b:is_sh == 1))
+if (exists("b:is_bash") && (b:is_bash == 1))
   if !has("gui_running") && executable("less")
     command! -buffer -nargs=1 Help silent exe '!bash -c "{ help "<args>" 2>/dev/null || man "<args>"; } | LESS= less"' | redraw!
   elseif has('terminal')