summaryrefslogtreecommitdiffstats
path: root/runtime/ftplugin
diff options
context:
space:
mode:
authorEisuke Kawashima <e-kwsm@users.noreply.github.com>2023-09-26 03:40:45 +0900
committerGitHub <noreply@github.com>2023-09-25 19:40:45 +0100
commit54e1f56cf2a5f74ee11baba170afff867e5d9f99 (patch)
tree2a5b60262c69f0f46dbdfd4e2606c0e315390ff8 /runtime/ftplugin
parent3aa114463f0219eba2e9fe0517067be9fcaf8248 (diff)
runtime(sh): only invoke bash help in ftplugin if it has been detected to be bash (#13171)
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r--runtime/ftplugin/sh.vim3
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/ftplugin/sh.vim b/runtime/ftplugin/sh.vim
index 4409f3f90c..c227838d18 100644
--- a/runtime/ftplugin/sh.vim
+++ b/runtime/ftplugin/sh.vim
@@ -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')