From: Simon Tatham Date: Mon, 14 May 2001 13:31:14 +0000 (+0000) Subject: Scrollbar was failing to update when no scrollback-reset event had happened X-Git-Tag: r8855-g4f798d~2611 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=59a38a6f4c016dffb20b26276b6c65385614eff0;p=PuTTY_svn.git Scrollbar was failing to update when no scrollback-reset event had happened git-svn-id: http://svn.tartarus.org/sgt/putty@1126 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/terminal.c b/terminal.c index 2ddd1a74..cf55f8ea 100644 --- a/terminal.c +++ b/terminal.c @@ -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);