junegunn / fzf.vim

fzf :heart: vim
MIT License
9.59k stars 582 forks source link

[Commands] Fix hit-enter/more-prompt with terminal buffer fzf #1363

Closed liskin closed 2 years ago

liskin commented 2 years ago

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.

junegunn commented 2 years ago

Thanks, I wasn't aware of the problem because I'm using tmux layout let g:fzf_layout = { 'tmux': '-p90%,60%' }. I can reproduce the problem and confirm that this patch fixes it. Thanks for the patch.