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.
This commit is contained in:
Jöran Karl 2024-04-21 22:57:07 +02:00
parent 26fa15c147
commit 3919cf399f

View file

@ -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
}