mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-09 14:20:16 +09:00
Fixing tabmove not working properly when there's a split in pane (#3371)
This commit is contained in:
@@ -198,7 +198,7 @@ func (h *BufPane) TabMoveCmd(args []string) {
|
||||
idxTo = util.Clamp(idxTo, 0, len(Tabs.List)-1)
|
||||
|
||||
activeTab := Tabs.List[idxFrom]
|
||||
Tabs.RemoveTab(activeTab.ID())
|
||||
Tabs.RemoveTab(activeTab.Panes[0].ID())
|
||||
Tabs.List = append(Tabs.List, nil)
|
||||
copy(Tabs.List[idxTo+1:], Tabs.List[idxTo:])
|
||||
Tabs.List[idxTo] = activeTab
|
||||
|
||||
Reference in New Issue
Block a user