mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-09-28 05:09:02 +00:00
[vim] &termwinkey may not be available
/cc @Caid11
This commit is contained in:
parent
1ed25d76ba
commit
7acdaf0b43
@ -838,7 +838,9 @@ function! s:execute_term(dict, command, temps) abort
|
|||||||
let term_opts.curwin = 1
|
let term_opts.curwin = 1
|
||||||
endif
|
endif
|
||||||
let fzf.buf = term_start([&shell, &shellcmdflag, command], term_opts)
|
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')
|
if is_popup && exists('#TerminalWinOpen')
|
||||||
doautocmd <nomodeline> TerminalWinOpen
|
doautocmd <nomodeline> TerminalWinOpen
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user