diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-05-04 20:01:29 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-05-04 20:01:29 -0400 |
commit | e9ff48e51a9df78375ce703ff3d4df1a362ac259 (patch) | |
tree | d4165155445d4fe741145243d1559d4cac6446d0 /src/window-xlib.c | |
parent | 270d383f9fa721bf910235625c77c6ce9245df7e (diff) | |
download | runes-e9ff48e51a9df78375ce703ff3d4df1a362ac259.tar.gz runes-e9ff48e51a9df78375ce703ff3d4df1a362ac259.zip |
refactor to make alternate screens work again
Diffstat (limited to 'src/window-xlib.c')
-rw-r--r-- | src/window-xlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window-xlib.c b/src/window-xlib.c index 96d2558..485a3fd 100644 --- a/src/window-xlib.c +++ b/src/window-xlib.c @@ -760,8 +760,8 @@ static int runes_window_backend_handle_builtin_button_press( break; case Button4: t->scr.row_visible_offset += t->config.scroll_lines; - if (t->scr.row_visible_offset > t->scr.row_count - t->scr.max.row) { - t->scr.row_visible_offset = t->scr.row_count - t->scr.max.row; + if (t->scr.row_visible_offset > t->scr.grid->row_count - t->scr.grid->max.row) { + t->scr.row_visible_offset = t->scr.grid->row_count - t->scr.grid->max.row; } t->scr.dirty = 1; runes_window_backend_flush(t); |