diff options
author | Christian Clason <c.clason@uni-graz.at> | 2021-12-26 11:03:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-26 11:03:25 +0100 |
commit | 8c720f6b9d3217e2a9449ce13aac02406edbbb4e (patch) | |
tree | d27747fd449d64e792e890eb729e2123701d40c6 /runtime/ftplugin | |
parent | 9dd8557921ec94035971a3145ab744add858459a (diff) | |
download | rneovim-8c720f6b9d3217e2a9449ce13aac02406edbbb4e.tar.gz rneovim-8c720f6b9d3217e2a9449ce13aac02406edbbb4e.tar.bz2 rneovim-8c720f6b9d3217e2a9449ce13aac02406edbbb4e.zip |
vim-patch:partial fa3b72348d88 (#16780)
Update runtime files
https://github.com/vim/vim/commit/fa3b72348d88343390fbe212cfc230fec1602fc2
omit
doc/eval.txt (needs 8.2.3864)
doc/map.txt (needs 8.2.3619)
menu.vim (needs 8.2.0413)
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r-- | runtime/ftplugin/zsh.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/ftplugin/zsh.vim b/runtime/ftplugin/zsh.vim index 53ce1417dd..34410f1c62 100644 --- a/runtime/ftplugin/zsh.vim +++ b/runtime/ftplugin/zsh.vim @@ -18,13 +18,13 @@ setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql let b:undo_ftplugin = "setl com< cms< fo< " -if executable('zsh') +if executable('zsh') && &shell !~# '/\%(nologin\|false\)$' if !has('gui_running') && executable('less') - command! -buffer -nargs=1 RunHelp silent exe '!MANPAGER= zsh -ic "autoload -Uz run-help; run-help <args> 2>/dev/null | LESS= less"' | redraw! + command! -buffer -nargs=1 RunHelp silent exe '!MANPAGER= zsh -c "autoload -Uz run-help; run-help <args> 2>/dev/null | LESS= less"' | redraw! elseif has('terminal') - command! -buffer -nargs=1 RunHelp silent exe ':term zsh -ic "autoload -Uz run-help; run-help <args>"' + command! -buffer -nargs=1 RunHelp silent exe ':term zsh -c "autoload -Uz run-help; run-help <args>"' else - command! -buffer -nargs=1 RunHelp echo system('zsh -ic "autoload -Uz run-help; run-help <args> 2>/dev/null"') + command! -buffer -nargs=1 RunHelp echo system('zsh -c "autoload -Uz run-help; run-help <args> 2>/dev/null"') endif if !exists('current_compiler') compiler zsh |