1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-28 16:02:01 +03:00

strip NUL bytes instead of replacing with space

This commit is contained in:
Jesse Duffield
2022-10-03 09:23:24 -07:00
parent 3375cc1b3d
commit e3f21f0588
5 changed files with 9 additions and 9 deletions

View File

@ -55,9 +55,9 @@ var MenuFromCommand = NewIntegrationTest(NewIntegrationTestArgs{
assert.InMenu()
assert.MatchCurrentViewTitle(Equals("Choose commit message"))
assert.MatchSelectedLine(Equals("baz ")) // TODO: remove the trailing space
assert.MatchSelectedLine(Equals("baz"))
input.NextItem()
assert.MatchSelectedLine(Equals("bar ")) // TODO: remove the trailing space
assert.MatchSelectedLine(Equals("bar"))
input.Confirm()
assert.InPrompt()