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

Convert \r\n to \n; don't depend on unix2dos

This commit is contained in:
Tommy Nguyen
2018-08-20 09:16:35 -04:00
parent 5dd049eb82
commit 45fea83771
3 changed files with 9 additions and 6 deletions

View File

@ -91,7 +91,12 @@ func TestNormalizeLinefeeds(t *testing.T) {
{
// \r\n
[]byte{97, 115, 100, 102, 13, 10},
[]byte{97, 115, 100, 102},
[]byte{97, 115, 100, 102, 10},
},
{
// bash\r\nblah
[]byte{97, 115, 100, 102, 13, 10, 97, 115, 100, 102},
[]byte{97, 115, 100, 102, 10, 97, 115, 100, 102},
},
{
// \r