1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-08-07 22:02:56 +03:00

Fix ForEachLineInFile to not lose the last line if it doesn't end with a LF

This commit is contained in:
Stefan Haller
2024-10-09 15:37:08 +02:00
parent b71aa5e23b
commit 696e78fcc8
3 changed files with 2 additions and 11 deletions

View File

@@ -52,9 +52,6 @@ var ResolveWithoutTrailingLf = NewIntegrationTest(NewIntegrationTestArgs{
Contains("M file").IsSelected(),
)
/* EXPECTED:
t.Views().Main().Content(Contains("-a1\n+a2\n").DoesNotContain("-no eol"))
ACTUAL: */
t.Views().Main().Content(Contains("-a1\n+a2\n").Contains("-no eol"))
},
})