summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugin/fzf.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index 9ce9ab41..c94bb9ef 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -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