summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Roques <ojroques@users.noreply.github.com>2021-01-17 14:39:40 +0100
committerGitHub <noreply@github.com>2021-01-17 22:39:40 +0900
commit1a76bdf8914195ab26ebac7e49a3ed8752dd69bd (patch)
treea67eab998d0fa1b297ec84f6b065a42a9772922a
parentaf48b3df29a0c9658e95a109141f4a3c168b40a0 (diff)
[vim] Exit terminal mode before closing FZF window (#2326)
Fix https://github.com/junegunn/fzf.vim/issues/1216
-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