mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 14:39:24 -05:00
Scrollbar was failing to update when no scrollback-reset event had happened
[originally from svn r1126]
This commit is contained in:
parent
29cce22a90
commit
8e5e0225e5
@ -298,11 +298,12 @@ void term_update(void)
|
|||||||
Context ctx;
|
Context ctx;
|
||||||
ctx = get_ctx();
|
ctx = get_ctx();
|
||||||
if (ctx) {
|
if (ctx) {
|
||||||
|
if (seen_disp_event)
|
||||||
|
update_sbar();
|
||||||
if ((seen_key_event && (cfg.scroll_on_key)) ||
|
if ((seen_key_event && (cfg.scroll_on_key)) ||
|
||||||
(seen_disp_event && (cfg.scroll_on_disp))) {
|
(seen_disp_event && (cfg.scroll_on_disp))) {
|
||||||
disptop = 0; /* return to main screen */
|
disptop = 0; /* return to main screen */
|
||||||
seen_disp_event = seen_key_event = 0;
|
seen_disp_event = seen_key_event = 0;
|
||||||
update_sbar();
|
|
||||||
}
|
}
|
||||||
do_paint(ctx, TRUE);
|
do_paint(ctx, TRUE);
|
||||||
sys_cursor(curs.x, curs.y - disptop);
|
sys_cursor(curs.x, curs.y - disptop);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user