From 782de139c8edd8c3e77022ddf71648db1b344079 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 28 May 2024 19:25:28 +0900 Subject: [vim] Native --tmux fix for Neovim --- src/proxy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/proxy.go') diff --git a/src/proxy.go b/src/proxy.go index 5ee7317c..bf7b78d5 100644 --- a/src/proxy.go +++ b/src/proxy.go @@ -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") -- cgit v1.2.3