diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2020-11-19 09:55:57 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2020-11-19 09:55:57 +0900 |
commit | 7acdaf0b4335a6c089bce5b73ff23aeb3b9d9c92 (patch) | |
tree | b49bdf53e22c17311bb7aefbcfa5b2023b5d25d3 | |
parent | 1ed25d76ba51f9b3ab66f75b73734be43d41b8c3 (diff) |
[vim] &termwinkey may not be available
/cc @Caid11
-rw-r--r-- | plugin/fzf.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 247df973..47051157 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -838,7 +838,9 @@ function! s:execute_term(dict, command, temps) abort let term_opts.curwin = 1 endif let fzf.buf = term_start([&shell, &shellcmdflag, command], term_opts) - call setbufvar(fzf.buf, '&termwinkey', '<c-z>') + if exists('&termwinkey') + call setbufvar(fzf.buf, '&termwinkey', '<c-z>') + endif if is_popup && exists('#TerminalWinOpen') doautocmd <nomodeline> TerminalWinOpen endif |