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

Revert "Disable tmux popup when already running inside one (#4351)"

This reverts commit af8fe918d8.

Fix #4360
Fix #4359
This commit is contained in:
Junegunn Choi
2025-04-22 20:18:03 +09:00
parent 90ad1b7f22
commit 2a9c1c06a4
2 changed files with 2 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ func (r revision) compatible(other revision) bool {
// Run starts fzf
func Run(opts *Options) (int, error) {
if opts.Filter == nil {
if opts.Tmux != nil && len(os.Getenv("TMUX")) > 0 && len(os.Getenv("TMUX_PANE")) > 0 && opts.Tmux.index >= opts.Height.index {
if opts.Tmux != nil && len(os.Getenv("TMUX")) > 0 && opts.Tmux.index >= opts.Height.index {
return runTmux(os.Args, opts)
}