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:
parent
79703c0087
commit
67e56e5fbc
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user