From 2a9c1c06a4a0f8afd75ab299459f438095d41515 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 22 Apr 2025 20:18:03 +0900 Subject: Revert "Disable tmux popup when already running inside one (#4351)" This reverts commit af8fe918d863b18160390a79cbf957ee28dead56. Fix #4360 Fix #4359 --- src/proxy.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/proxy.go') diff --git a/src/proxy.go b/src/proxy.go index 47c41474..958ae26f 100644 --- a/src/proxy.go +++ b/src/proxy.go @@ -98,8 +98,7 @@ func runProxy(commandPrefix string, cmdBuilder func(temp string, needBash bool) validIdentifier := regexp.MustCompile(`^[a-zA-Z_][a-zA-Z0-9_]*$`) for _, pairStr := range os.Environ() { pair := strings.SplitN(pairStr, "=", 2) - // TMUX_PANE is never set inside a tmux popup, and should not be set so as to not be detected as a regular tmux pane - if validIdentifier.MatchString(pair[0]) && pair[0] != "TMUX_PANE" { + if validIdentifier.MatchString(pair[0]) { exports = append(exports, fmt.Sprintf("export %s=%s", pair[0], escapeSingleQuote(pair[1]))) } else if strings.HasPrefix(pair[0], "BASH_FUNC_") && strings.HasSuffix(pair[0], "%%") { name := pair[0][10 : len(pair[0])-2] -- cgit v1.2.3