[vim] Native --tmux fix for Neovim

This commit is contained in:
Junegunn Choi committed 2024-05-28 19:27:31 +09:00
1 parent 32eb32ee5e
commit 782de139c8
3 files changed
+10 -3

No files matched your search

+7
View File
@@ -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