mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-27 00:51:18 +02:00
support carriage returns for windows machines
This commit is contained in:
@ -200,6 +200,7 @@ func renderString(g *gocui.Gui, viewName, s string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func splitLines(multilineString string) []string {
|
func splitLines(multilineString string) []string {
|
||||||
|
multilineString = strings.Replace(multilineString, "\r", "", -1)
|
||||||
if multilineString == "" || multilineString == "\n" {
|
if multilineString == "" || multilineString == "\n" {
|
||||||
return make([]string, 0)
|
return make([]string, 0)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user