From 9c07e9366991a960245f3e67c838064ec0d25868 Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 21 Dec 2023 20:20:20 +0100 Subject: fix --- i_ui.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'i_ui.go') diff --git a/i_ui.go b/i_ui.go index 627e646..a5c6325 100644 --- a/i_ui.go +++ b/i_ui.go @@ -462,8 +462,8 @@ func i_ui(data *HardData) { } ui.s.Show() i_events(data) - if ui.sel > ui.sel_max { - ui.sel = ui.sel_max + if ui.sel >= ui.sel_max { + ui.sel = ui.sel_max - 1 } else if ui.sel < 0 { ui.sel = 0 } -- cgit v1.2.3