Skip to content

Commit

Permalink
Fixing tabmove not working properly when there's a split in pane
Browse files Browse the repository at this point in the history
  • Loading branch information
Neko-Box-Coder committed Jul 6, 2024
1 parent dc77592 commit a16e33c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/action/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a16e33c

Please sign in to comment.