mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
Bump gocui
This updates gocui to include https://github.com/jesseduffield/gocui/pull/68 and https://github.com/jesseduffield/gocui/pull/69, which changes views to not have an extra blank line at the end when content ending in a newline character is written to them. This makes text views more consistent with list views, which don't have a blank line after the last list entry either.
This commit is contained in:
@ -64,6 +64,6 @@ var MoveToIndexPartOfAdjacentAddedLines = NewIntegrationTest(NewIntegrationTestA
|
||||
)
|
||||
|
||||
t.Views().Main().
|
||||
Content(Contains("+1st line\n 2nd line\n"))
|
||||
Content(Contains("+1st line\n 2nd line"))
|
||||
},
|
||||
})
|
||||
|
@ -23,12 +23,12 @@ var StashStagedPartialFile = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
|
||||
t.Views().Staging().
|
||||
Content(
|
||||
Contains(" line1\n-line2\n+line2 mod\n line3\n-line4\n+line4 mod\n"),
|
||||
Contains(" line1\n-line2\n+line2 mod\n line3\n-line4\n+line4 mod"),
|
||||
).
|
||||
PressPrimaryAction().
|
||||
PressPrimaryAction().
|
||||
Content(
|
||||
Contains(" line1\n line2 mod\n line3\n-line4\n+line4 mod\n"),
|
||||
Contains(" line1\n line2 mod\n line3\n-line4\n+line4 mod"),
|
||||
).
|
||||
PressEscape()
|
||||
|
||||
@ -54,7 +54,7 @@ var StashStagedPartialFile = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
)
|
||||
t.Views().Main().
|
||||
Content(
|
||||
Contains(" line1\n-line2\n+line2 mod\n line3\n line4\n"),
|
||||
Contains(" line1\n-line2\n+line2 mod\n line3\n line4"),
|
||||
)
|
||||
|
||||
t.Views().Files().
|
||||
@ -64,7 +64,7 @@ var StashStagedPartialFile = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
|
||||
t.Views().Staging().
|
||||
Content(
|
||||
Contains(" line1\n line2\n line3\n-line4\n+line4 mod\n"),
|
||||
Contains(" line1\n line2\n line3\n-line4\n+line4 mod"),
|
||||
)
|
||||
},
|
||||
})
|
||||
|
Reference in New Issue
Block a user