m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-15 23:03:47 -05:00

[vim] Native --tmux fix for Neovim

This commit is contained in:
Junegunn Choi
2024-05-28 19:25:28 +09:00
parent 32eb32ee5e
commit 782de139c8
3 changed files with 10 additions and 3 deletions

View File

@@ -59,8 +59,8 @@ func runProxy(commandPrefix string, cmdBuilder func(temp string) *exec.Cmd, opts
}()
var command string
commandPrefix += ` --proxy-script "$0"`
if opts.Input == nil && util.IsTty(os.Stdin) {
commandPrefix += ` --no-force-tty-in --proxy-script "$0"`
if opts.Input == nil && (opts.ForceTtyIn || util.IsTty(os.Stdin)) {
command = fmt.Sprintf(`%s > %q`, commandPrefix, output)
} else {
input, err := fifo("proxy-input")