From 3919cf399f5522ce0dd677a18ca8a660cc29ac10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6ran=20Karl?= <3951388+JoeKar@users.noreply.github.com> Date: Sun, 21 Apr 2024 22:57:07 +0200 Subject: [PATCH] action: Provide `Name()` to treat `TermPane` as `Pane` This will add the capability to address the `TermPane` within the tabs, since the tab list only stores panes. --- internal/action/termpane.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/action/termpane.go b/internal/action/termpane.go index bbb1e17b..f440f0cd 100644 --- a/internal/action/termpane.go +++ b/internal/action/termpane.go @@ -81,6 +81,10 @@ func (t *TermPane) SetID(i uint64) { t.id = i } +func (t *TermPane) Name() string { + return t.Terminal.Name() +} + func (t *TermPane) SetTab(tab *Tab) { t.tab = tab }