From d0d248e44c9270076ac5c0cb51fb3a14a354cc2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Thu, 15 Jun 2023 14:45:26 +0200 Subject: Fix crash when scrolling too far up --- nncmpp.c | 1 + 1 file changed, 1 insertion(+) 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: -- cgit v1.2.3