fix: prevent newline characters from being printed (#2428)
This commit is contained in:
1 parent
3ec5ee8616
commit
23ea7abd51
1 file changed
+1
-1
@@ -91,7 +91,7 @@ func (win *win) print(screen tcell.Screen, x, y int, st tcell.Style, s string) t
|
|||||||
if gc == "\t" {
|
if gc == "\t" {
|
||||||
w := gOpts.tabstop - (x+off+printLength(b.String()))%gOpts.tabstop
|
w := gOpts.tabstop - (x+off+printLength(b.String()))%gOpts.tabstop
|
||||||
b.WriteString(strings.Repeat(" ", w))
|
b.WriteString(strings.Repeat(" ", w))
|
||||||
} else if gc != "\r" {
|
} else if gc != "\r" && gc != "\n" {
|
||||||
b.WriteString(gc)
|
b.WriteString(gc)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user