mirror of
https://github.com/junegunn/fzf.git
synced 2024-10-06 03:07:46 +03:00
[vim] Exit terminal mode before closing FZF window (#2326)
Fix https://github.com/junegunn/fzf.vim/issues/1216
This commit is contained in:
parent
af48b3df29
commit
1a76bdf891
@ -792,6 +792,8 @@ function! s:execute_term(dict, command, temps) abort
|
||||
call self.switch_back(1)
|
||||
else
|
||||
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
|
||||
" there's no other listed buffer (nvim +'set nobuflisted')
|
||||
close
|
||||
|
Loading…
Reference in New Issue
Block a user