[vim] Exit terminal mode before closing FZF window (#2326)

Fix https://github.com/junegunn/fzf.vim/issues/1216
pull/2332/head
Olivier Roques 3 years ago committed by GitHub
parent af48b3df29
commit 1a76bdf891
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save