From 58b691752696dc9033790d430eb4ea4906143953 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6ran=20Karl?= <3951388+JoeKar@users.noreply.github.com> Date: Wed, 7 May 2025 20:17:33 +0200 Subject: [PATCH] command: Apply small cosmetics to `openTerm()` --- internal/action/command.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/action/command.go b/internal/action/command.go index 872e9397..9bf979b9 100644 --- a/internal/action/command.go +++ b/internal/action/command.go @@ -1073,8 +1073,8 @@ func (h *BufPane) openTerm(args []string, newtab bool) { h.AddTab() id = MainTab().Panes[pane].ID() } else { - for i, p := range h.tab.Panes { - if p.ID() == h.ID() { + for i, p := range MainTab().Panes { + if p.IsActive() { pane = i id = p.ID() p.Close()