mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 15:46:26 -04: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 a new issue