0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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>
This commit is contained in:
Eisuke Kawashima
2023-09-26 03:40:45 +09:00
committed by GitHub
parent 3aa114463f
commit 54e1f56cf2

View 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')