[vim] &termwinkey may not be available

/cc @Caid11
pull/2266/head
Junegunn Choi 4 years ago
parent 1ed25d76ba
commit 7acdaf0b43
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -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

Loading…
Cancel
Save