diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2024-05-28 19:25:28 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2024-05-28 19:27:31 +0900 |
| commit | 782de139c8edd8c3e77022ddf71648db1b344079 (patch) | |
| tree | 03f32fc90d0215458ab1b51b47aa5c8e41308722 /src/options.go | |
| parent | 32eb32ee5e80ab4e10ead9bc6db8c6ad59cf509d (diff) | |
| download | fzf-782de139c8edd8c3e77022ddf71648db1b344079.tar.gz | |
[vim] Native --tmux fix for Neovim
Diffstat (limited to 'src/options.go')
| -rw-r--r-- | src/options.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/options.go b/src/options.go index 461db313..9df1298e 100644 --- a/src/options.go +++ b/src/options.go @@ -396,6 +396,7 @@ type Options struct { Output chan string NoWinpty bool Tmux *tmuxOptions + ForceTtyIn bool ProxyScript string Bash bool Zsh bool @@ -1949,6 +1950,12 @@ func parseOptions(opts *Options, allArgs []string) error { } case "--no-tmux": opts.Tmux = nil + case "--force-tty-in": + // NOTE: We need this because `system('fzf --tmux < /dev/tty')` doesn't + // work on Neovim. Same as '-' option of fzf-tmux. + opts.ForceTtyIn = true + case "--no-force-tty-in": + opts.ForceTtyIn = false case "--proxy-script": if opts.ProxyScript, err = nextString(allArgs, &i, ""); err != nil { return err |
