Skip to content
Snippets Groups Projects
Unverified Commit 1a76bdf8 authored by Olivier Roques's avatar Olivier Roques Committed by GitHub
Browse files

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

parent af48b3df
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment