mirror of
https://github.com/junegunn/fzf.git
synced 2025-07-28 18:51:59 -07:00
[vim] &termwinkey may not be available
/cc @Caid11
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user