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

support carriage returns for windows machines

This commit is contained in:
Jesse Duffield 2018-08-05 17:13:12 +10:00
parent 79703c0087
commit 67e56e5fbc

View File

@ -200,6 +200,7 @@ func renderString(g *gocui.Gui, viewName, s string) error {
}
func splitLines(multilineString string) []string {
multilineString = strings.Replace(multilineString, "\r", "", -1)
if multilineString == "" || multilineString == "\n" {
return make([]string, 0)
}