Remove space after rebase todo

This is very old; I can only guess that this was added at a time where today's
list column handling wasn't in place yet, so the space was needed to separate
columns. This now causes a gap of two spaces between the rebase todo column and
the author column, which I'm sure wasn't intended. Funny that I never noticed.
This commit is contained in:
Stefan Haller 2025-04-27 21:34:24 +02:00
parent 3ff1be0788
commit 6402c830d5
5 changed files with 39 additions and 39 deletions

View file

@ -387,7 +387,7 @@ func displayCommit(
actionString := "" actionString := ""
if commit.Action != models.ActionNone { if commit.Action != models.ActionNone {
actionString = actionColorMap(commit.Action, commit.Status).Sprint(commit.Action.String()) + " " actionString = actionColorMap(commit.Action, commit.Status).Sprint(commit.Action.String())
} }
tagString := "" tagString := ""

View file

@ -224,11 +224,11 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
cherryPickedCommitHashSet: set.New[string](), cherryPickedCommitHashSet: set.New[string](),
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC), now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
expected: formatExpected(` expected: formatExpected(`
hash1 pick commit1 hash1 pick commit1
hash2 pick commit2 hash2 pick commit2
hash3 commit3 hash3 commit3
hash4 commit4 hash4 commit4
hash5 commit5 hash5 commit5
`), `),
}, },
{ {
@ -247,10 +247,10 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
cherryPickedCommitHashSet: set.New[string](), cherryPickedCommitHashSet: set.New[string](),
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC), now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
expected: formatExpected(` expected: formatExpected(`
hash2 pick commit2 hash2 pick commit2
hash3 commit3 hash3 commit3
hash4 commit4 hash4 commit4
hash5 commit5 hash5 commit5
`), `),
}, },
{ {
@ -289,8 +289,8 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
cherryPickedCommitHashSet: set.New[string](), cherryPickedCommitHashSet: set.New[string](),
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC), now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
expected: formatExpected(` expected: formatExpected(`
hash1 pick commit1 hash1 pick commit1
hash2 pick commit2 hash2 pick commit2
`), `),
}, },
{ {
@ -328,8 +328,8 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
cherryPickedCommitHashSet: set.New[string](), cherryPickedCommitHashSet: set.New[string](),
now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC), now: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
expected: formatExpected(` expected: formatExpected(`
hash1 pick commit1 hash1 pick commit1
hash2 pick commit2 hash2 pick commit2
`), `),
}, },
{ {

View file

@ -60,10 +60,10 @@ var CherryPickDuringRebase = NewIntegrationTest(NewIntegrationTestArgs{
Press(keys.Universal.Edit). Press(keys.Universal.Edit).
Lines( Lines(
Contains("--- Pending rebase todos ---"), Contains("--- Pending rebase todos ---"),
Contains("pick CI two"), Contains("pick CI two"),
Contains("--- Commits ---"), Contains("--- Commits ---"),
Contains(" CI one").IsSelected(), Contains(" CI one").IsSelected(),
Contains(" CI base"), Contains(" CI base"),
). ).
Press(keys.Commits.PasteCommits). Press(keys.Commits.PasteCommits).
Tap(func() { Tap(func() {
@ -77,11 +77,11 @@ var CherryPickDuringRebase = NewIntegrationTest(NewIntegrationTestArgs{
}). }).
Lines( Lines(
Contains("--- Pending rebase todos ---"), Contains("--- Pending rebase todos ---"),
Contains("pick CI two"), Contains("pick CI two"),
Contains("--- Commits ---"), Contains("--- Commits ---"),
Contains(" CI three"), Contains(" CI three"),
Contains(" CI one"), Contains(" CI one"),
Contains(" CI base"), Contains(" CI base"),
). ).
Tap(func() { Tap(func() {
t.Common().ContinueRebase() t.Common().ContinueRebase()

View file

@ -28,17 +28,17 @@ var EditRangeSelectDownToMergeOutsideRebase = NewIntegrationTest(NewIntegrationT
Press(keys.Universal.Edit). Press(keys.Universal.Edit).
Lines( Lines(
Contains("--- Pending rebase todos ---"), Contains("--- Pending rebase todos ---"),
Contains("edit CI commit 02").IsSelected(), Contains("edit CI commit 02").IsSelected(),
Contains("edit CI commit 01").IsSelected(), Contains("edit CI commit 01").IsSelected(),
Contains("--- Commits ---").IsSelected(), Contains("--- Commits ---").IsSelected(),
Contains(" CI ⏣─╮ Merge branch 'second-change-branch' into first-change-branch").IsSelected(), Contains(" CI ⏣─╮ Merge branch 'second-change-branch' into first-change-branch").IsSelected(),
Contains(" CI │ ◯ * second-change-branch unrelated change"), Contains(" CI │ ◯ * second-change-branch unrelated change"),
Contains(" CI │ ◯ second change"), Contains(" CI │ ◯ second change"),
Contains(" CI ◯ │ first change"), Contains(" CI ◯ │ first change"),
Contains(" CI ◯─╯ * original"), Contains(" CI ◯─╯ * original"),
Contains(" CI ◯ three"), Contains(" CI ◯ three"),
Contains(" CI ◯ two"), Contains(" CI ◯ two"),
Contains(" CI ◯ one"), Contains(" CI ◯ one"),
) )
}, },
}) })

View file

@ -38,15 +38,15 @@ var EditRangeSelectOutsideRebase = NewIntegrationTest(NewIntegrationTestArgs{
Press(keys.Universal.Edit). Press(keys.Universal.Edit).
Lines( Lines(
Contains("--- Pending rebase todos ---"), Contains("--- Pending rebase todos ---"),
Contains("merge CI Merge branch 'second-change-branch' into first-change-branch").IsSelected(), Contains("merge CI Merge branch 'second-change-branch' into first-change-branch").IsSelected(),
Contains("edit CI first change").IsSelected(), Contains("edit CI first change").IsSelected(),
Contains("edit CI * second-change-branch unrelated change").IsSelected(), Contains("edit CI * second-change-branch unrelated change").IsSelected(),
Contains("edit CI second change").IsSelected(), Contains("edit CI second change").IsSelected(),
Contains("edit CI * original").IsSelected(), Contains("edit CI * original").IsSelected(),
Contains("--- Commits ---").IsSelected(), Contains("--- Commits ---").IsSelected(),
Contains(" CI ◯ three").IsSelected(), Contains(" CI ◯ three").IsSelected(),
Contains(" CI ◯ two"), Contains(" CI ◯ two"),
Contains(" CI ◯ one"), Contains(" CI ◯ one"),
) )
}, },
}) })