diff --git a/terminal.c b/terminal.c index 40ad4823..1a65e71b 100644 --- a/terminal.c +++ b/terminal.c @@ -435,6 +435,9 @@ static void makerle(struct buf *b, termline *ldata, hdrpos = b->len; hdrsize = 0; add(b, 0); + /* And ensure this run doesn't interfere with the next. */ + prevlen = prevpos = 0; + prev2 = FALSE; continue; } else {