mirror of
https://github.com/junegunn/fzf.git
synced 2026-10-28 08:05:53 +00:00
[vim] Exit terminal mode before closing FZF window (#2326)
Fix https://github.com/junegunn/fzf.vim/issues/1216
This commit is contained in:
1 parent
af48b3df29
commit
1a76bdf891
1 file changed
+2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user