mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-14 11:45:48 -07:00
Use winpty to launch fzf in Git bash (mintty)
Close #3806 Known limitation: * --height cannot be used
This commit is contained in:
@@ -21,7 +21,11 @@ Matcher -> EvtHeader -> Terminal (update header)
|
||||
// Run starts fzf
|
||||
func Run(opts *Options) (int, error) {
|
||||
if opts.Tmux != nil && len(os.Getenv("TMUX")) > 0 {
|
||||
return runTmux(os.Args[1:], opts)
|
||||
return runTmux(os.Args, opts)
|
||||
}
|
||||
|
||||
if os.Getenv("TERM_PROGRAM") == "mintty" && !opts.NoWinpty {
|
||||
return runWinpty(os.Args, opts)
|
||||
}
|
||||
|
||||
if err := postProcessOptions(opts); err != nil {
|
||||
|
Reference in New Issue
Block a user