mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 00:03:39 -05:00
[vim] Exit terminal mode before closing FZF window (#2326)
Fix https://github.com/junegunn/fzf.vim/issues/1216
This commit is contained in:
@@ -792,6 +792,8 @@ function! s:execute_term(dict, command, temps) abort
|
|||||||
call self.switch_back(1)
|
call self.switch_back(1)
|
||||||
else
|
else
|
||||||
if bufnr('') == self.buf
|
if bufnr('') == self.buf
|
||||||
|
" Exit terminal mode first (see neovim#13769)
|
||||||
|
call feedkeys("\<C-\>\<C-n>", 'n')
|
||||||
" We use close instead of bd! since Vim does not close the split when
|
" We use close instead of bd! since Vim does not close the split when
|
||||||
" there's no other listed buffer (nvim +'set nobuflisted')
|
" there's no other listed buffer (nvim +'set nobuflisted')
|
||||||
close
|
close
|
||||||
|
|||||||
Reference in New Issue
Block a user