Compare commits

...

2 Commits

Author SHA1 Message Date
Neko Box Coder
1a505906cd
Merge 853de0270f into dc7759204b 2024-07-06 01:16:35 +00:00
Neko Box Coder
853de0270f
Fixing tabmove not working properly when there's a split in pane 2024-07-06 02:14:04 +01:00

View File

@ -198,7 +198,10 @@ func (h *BufPane) TabMoveCmd(args []string) {
idxTo = util.Clamp(idxTo, 0, len(Tabs.List)-1)
activeTab := Tabs.List[idxFrom]
Tabs.RemoveTab(activeTab.ID())
if len(activeTab.Panes) == 0 {
return
}
Tabs.RemoveTab(activeTab.Panes[0].ID())
Tabs.List = append(Tabs.List, nil)
copy(Tabs.List[idxTo+1:], Tabs.List[idxTo:])
Tabs.List[idxTo] = activeTab