From d996335abd8254e3935e86d0ceeff37e14af3099 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCnchbach?= Date: Sun, 4 Dec 2022 12:30:41 +0100 Subject: [PATCH] Use setter instead of directly modifying selection variable --- src/listview_curses.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/listview_curses.cc b/src/listview_curses.cc index 9e5faa4a..449a95bc 100644 --- a/src/listview_curses.cc +++ b/src/listview_curses.cc @@ -56,7 +56,7 @@ listview_curses::reload_data() } if (this->lv_selectable) { if (this->get_inner_height() == 0) { - this->lv_selection = 0_vl; + this->set_selection(0_vl); } else if (this->lv_selection >= this->get_inner_height()) { this->set_selection(this->get_inner_height() - 1_vl); } else {