From 70541d2ee0bfd8998ef0f252bb93b660cf94fe14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Janou=C5=A1ek?= Date: Sun, 30 Jan 2022 04:28:24 +0000 Subject: [PATCH] [Commands] Fix hit-enter/more-prompt with terminal buffer fzf (#1363) Since https://github.com/junegunn/fzf//commit/85ae7459103c3aeef39383d8c8a4fbbdb9fb5f64, fzf opens in a terminal buffer (in my setup) and that breaks commands that end up showing the hit-enter or more prompt, such as :scriptnames or :ALEInfo. No idea why those commands break (I tried to diagnose this but gave up unfortunately), but executing them using feedkeys fixes this. --- autoload/fzf/vim.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/autoload/fzf/vim.vim b/autoload/fzf/vim.vim index 257980f..90ded42 100644 --- a/autoload/fzf/vim.vim +++ b/autoload/fzf/vim.vim @@ -989,8 +989,7 @@ function! s:command_sink(lines) if empty(a:lines[0]) call feedkeys(':'.cmd.(a:lines[1][0] == '!' ? '' : ' '), 'n') else - call histadd(':', cmd) - execute cmd + call feedkeys(':'.cmd."\", 'n') endif endfunction