]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Oops - fixing the line-resizing segfault introduced a new
authorSimon Tatham <anakin@pobox.com>
Mon, 21 May 2001 13:33:12 +0000 (13:33 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 21 May 2001 13:33:12 +0000 (13:33 +0000)
line-resizing segfault! Remind me to test under Minefield next time.
Should now be fine, as I've just done so.

[originally from svn r1141]

terminal.c

index aeadc7713ca1b6bc9596db7048675fb2f05ae2c0..69713680b932943ef92c00343cb85515fe4232eb 100644 (file)
@@ -254,6 +254,7 @@ unsigned long *lineptr(int y, int lineno)
     if (newline != line) {
        delpos234(whichtree, treeindex);
        addpos234(whichtree, newline, treeindex);
+        line = newline;
     }
 
     return line + 1;