Need to press Enter twice on Windows
- [x] I have read through the manual page (
man fzf) - [x] I have the latest version of fzf
- [x] I have searched through the existing issues
Info
- OS
- [ ] Linux
- [ ] Mac OS X
- [x] Windows
- [ ] Etc.
- Shell
- [x] bash
- [ ] zsh
- [ ] fish
- Vim: Neovim 0.5
Problem / Steps to reproduce
When I use a function like fzf#run(fzf#wrap({})), when I select an option, the first time I press Enter the fzf process receives it and empties the terminal correctly, but the terminal popup window does not exit. It stays empty and open. I need to press Enter again to make it go away and actually navigate to the file I want.
I suspect this is because of cmd.exe's /C flag requiring one more "enter" before it ends the cmd process, as this issue does not happen on Linux.
A probable fix would be to run the executable yourself instead of relying on the shell to parse the command line.
I have the same problem on Linux. fzf version 0.40. using zsh.
config=$(printf "%s\n" "${colors[@]}" | fzf --height=~50% --border -0 | sed 's/ /\\ /') runs but fzf does not close unless i press enter again.
I am not sure I get similar issue or not.
If I try to select one file in the fzf popup list, and press enter, it will require 3 or 4 seconds to open the file, seems it "hangs" on some place, while if I press an additional "Enter", the file will be opened immediately.
I don't meet this issue in vim9.0.
nvim version: 0.94, Windows 10.