summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-06-15 14:45:26 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-06-15 14:45:26 +0200
commitd0d248e44c9270076ac5c0cb51fb3a14a354cc2b (patch)
treea23781a9a397db15a71aefadaac92fdf3e3b287f
parentebda305e2de85015b202f2a50ec25dc05f701f33 (diff)
downloadnncmpp-d0d248e44c9270076ac5c0cb51fb3a14a354cc2b.tar.gz
nncmpp-d0d248e44c9270076ac5c0cb51fb3a14a354cc2b.tar.xz
nncmpp-d0d248e44c9270076ac5c0cb51fb3a14a354cc2b.zip
Fix crash when scrolling too far up
-rw-r--r--nncmpp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nncmpp.c b/nncmpp.c
index 006cc0e..1b332ac 100644
--- a/nncmpp.c
+++ b/nncmpp.c
@@ -2961,6 +2961,7 @@ app_process_left_mouse_click (struct widget *w, int x, int y, int modifiers)
tab->item_top = (double) y / w->height
* (int) tab->item_count - visible_items / 2;
app_invalidate ();
+ app_fix_view_range ();
break;
}
case WIDGET_MESSAGE: