]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Fix bug in scrollback compression, which manifested when attempting
authorSimon Tatham <anakin@pobox.com>
Sat, 16 Oct 2004 12:36:50 +0000 (12:36 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 16 Oct 2004 12:36:50 +0000 (12:36 +0000)
to encode a very long (len>128) run of the same literal.

[originally from svn r4647]

terminal.c

index 40ad4823ba102130748658a37ed742351169203d..1a65e71b32b3c27945db1fee6b7421330603e180 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 {