This commit is contained in:
Kovid Goyal 2023-03-27 17:19:13 +05:30
parent 840caf5fd5
commit a22933afbc
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ func (self *LogicalLine) IncrementScrollPosBy(pos *ScrollPos, amt int) (delta in
}
func join_half_lines(left, right string) string {
return left + "\x1b[m" + right + "\x1b[m"
return left + "\x1b[m" + right
}
func fit_in(text string, count int) string {

View File

@ -353,7 +353,7 @@ func (self *Handler) draw_screen() {
}
lp.QueueWriteString(sl)
lp.MoveCursorVertically(1)
lp.QueueWriteString("\r")
lp.QueueWriteString("\x1b[m\r")
if self.logical_lines.IncrementScrollPosBy(&pos, 1) == 0 {
break
}