mirror of
https://github.com/zyedidia/micro.git
synced 2024-08-17 16:00:43 +03:00
Compare commits
2 Commits
79e9f8fae0
...
1a505906cd
Author | SHA1 | Date | |
---|---|---|---|
|
1a505906cd | ||
|
853de0270f |
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user