diff options
author | Christian Clason <c.clason@uni-graz.at> | 2023-09-25 22:15:12 +0200 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2023-09-26 09:37:47 +0200 |
commit | ddc147da2f5d5ec565873587c11725a1fd355d8b (patch) | |
tree | 65eb712135a31ccc40081e02fa4e303a88cdae11 | |
parent | 3387dc4a463c80a01702cdd069dde3d505a4e805 (diff) | |
download | rneovim-ddc147da2f5d5ec565873587c11725a1fd355d8b.tar.gz rneovim-ddc147da2f5d5ec565873587c11725a1fd355d8b.tar.bz2 rneovim-ddc147da2f5d5ec565873587c11725a1fd355d8b.zip |
vim-patch:54e1f56cf2a5
runtime(sh): only invoke bash help in ftplugin if it has been detected to be bash (vim/vim#13171)
https://github.com/vim/vim/commit/54e1f56cf2a5f74ee11baba170afff867e5d9f99
Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
-rw-r--r-- | runtime/ftplugin/sh.vim | 3 |
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') |