]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/commitdiff
Scrollbar was failing to update when no scrollback-reset event had happened
authorSimon Tatham <anakin@pobox.com>
Mon, 14 May 2001 13:31:14 +0000 (13:31 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 14 May 2001 13:31:14 +0000 (13:31 +0000)
git-svn-id: http://svn.tartarus.org/sgt/putty@1126 cda61777-01e9-0310-a592-d414129be87e

terminal.c

index 2ddd1a741f745c248228621155659ecb43b99fef..cf55f8ea1f671941bbbd530f7c675e661f54dcc2 100644 (file)
@@ -298,11 +298,12 @@ void term_update(void)
     Context ctx;
     ctx = get_ctx();
     if (ctx) {
+       if (seen_disp_event)
+           update_sbar();
        if ((seen_key_event && (cfg.scroll_on_key)) ||
            (seen_disp_event && (cfg.scroll_on_disp))) {
            disptop = 0;               /* return to main screen */
            seen_disp_event = seen_key_event = 0;
-           update_sbar();
        }
        do_paint(ctx, TRUE);
        sys_cursor(curs.x, curs.y - disptop);