Fix bug in scrollback compression, which manifested when attempting
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 16 Oct 2004 12:36:50 +0000 (12:36 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 16 Oct 2004 12:36:50 +0000 (12:36 +0000)
to encode a very long (len>128) run of the same literal.

git-svn-id: svn://svn.tartarus.org/sgt/putty@4647 cda61777-01e9-0310-a592-d414129be87e

terminal.c

index 40ad482..1a65e71 100644 (file)
@@ -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 {