Skip to content

Commit

Permalink
fix(cellbuf): update pen before writing first REP cell
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Dec 9, 2024
1 parent 1a994bf commit 0eec74e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cellbuf/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -530,10 +530,10 @@ func (s *Screen) emitRange(w io.Writer, line Line, n int) (eoi bool) {
repCount--
}

s.updatePen(w, cell0)
s.putCell(w, cell0)
repCount-- // cell0 is a single width cell ASCII character

s.updatePen(w, cell0)
io.WriteString(w, ansi.RepeatPreviousCharacter(repCount)) //nolint:errcheck
s.cur.X += repCount
if wrapPossible {
Expand Down

0 comments on commit 0eec74e

Please sign in to comment.