diff --git a/v2/highlight.go b/v2/highlight.go index 4009a2b0..853b5a83 100644 --- a/v2/highlight.go +++ b/v2/highlight.go @@ -535,6 +535,12 @@ func (e *Editor) WriteLines(c *vt100.Canvas, fromline, toline LineIndex, cx, cy } } + matchForAnotherN = 0 + skipX = e.pos.offsetX + untilNextJumpLetter = 0 + letter = rune(0) + tx, ty = uint(0), uint(0) + for runeIndex, ra = range runesAndAttributes { if skipX > 0 { skipX--