# HG changeset patch # User Christian Brabandt # Date 1695667506 -7200 # Node ID 77e0574450d028fc15046727dff1dda0a5e16240 # Parent 1f9388b95c75248c3405b65f3e3e16c935ff562d runtime(sh): only invoke bash help in ftplugin if it has been detected to be bash (#13171) Commit: https://github.com/vim/vim/commit/54e1f56cf2a5f74ee11baba170afff867e5d9f99 Author: Eisuke Kawashima Date: Tue Sep 26 03:40:45 2023 +0900 runtime(sh): only invoke bash help in ftplugin if it has been detected to be bash (https://github.com/vim/vim/issues/13171) Signed-off-by: Christian Brabandt diff --git a/runtime/ftplugin/sh.vim b/runtime/ftplugin/sh.vim --- a/runtime/ftplugin/sh.vim +++ b/runtime/ftplugin/sh.vim @@ -39,8 +39,7 @@ if (has("gui_win32") || has("gui_gtk")) 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 "" 2>/dev/null || man ""; } | LESS= less"' | redraw! elseif has('terminal')