Skip to content

Commit 88eb85a

Browse files
committed
fix: commits panel name
Signed-off-by: Ayush <mail@ayuch.dev>
1 parent 9133289 commit 88eb85a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/tui/view.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import (
1111
zone "github.com/lrstanley/bubblezone"
1212
)
1313

14-
1514
// ansiRegex is used to strip ANSI escape codes from strings.
1615
var ansiRegex = regexp.MustCompile(`\x1b\[[0-9;]*m`)
1716

@@ -107,12 +106,10 @@ func (m Model) renderMainView() string {
107106
leftpanels := []Panel{StatusPanel, FilesPanel, BranchesPanel, CommitsPanel, StashPanel}
108107
rightpanels := []Panel{MainPanel, SecondaryPanel}
109108

110-
111109
titles := map[Panel]string{
112110
MainPanel: panelZero, StatusPanel: panelOne, FilesPanel: panelTwo,
113-
BranchesPanel: panelThree, CommitsPanel: panelFive, StashPanel: panelFive, SecondaryPanel: panelSix,
111+
BranchesPanel: panelThree, CommitsPanel: panelFour, StashPanel: panelFive, SecondaryPanel: panelSix,
114112
}
115-
116113

117114
leftColumn := m.renderPanelColumn(leftpanels, titles, leftSectionWidth)
118115
rightColumn := m.renderPanelColumn(rightpanels, titles, rightSectionWidth)

0 commit comments

Comments
 (0)