From 4769a94fb1e8865ec1950b1f97ed21e65b48fee3 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 19:33:31 +0200 Subject: [PATCH] command: Exit loop in `TermCmd()` after terminal call Otherwise the last opened pane is closed instead of the active one. --- internal/action/command.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/action/command.go b/internal/action/command.go index 3b590559..8f6934e7 100644 --- a/internal/action/command.go +++ b/internal/action/command.go @@ -1121,6 +1121,7 @@ func (h *BufPane) TermCmd(args []string) { } else { term(i, false) } + break } } }