diff options
-rw-r--r-- | src/ui/tui.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/tui.sh b/src/ui/tui.sh index 2049fcc..76da51c 100644 --- a/src/ui/tui.sh +++ b/src/ui/tui.sh @@ -292,7 +292,8 @@ tui_show_menu() # TODO: scrpos ;; KEY_DOWN) - [ ${curpos} -lt ${lsth} ] || continue + [ $(($curpos + 1)) -lt ${lsth} ] || \ + continue curpos=$(($curpos + 1)) # TODO: scrpos ;; |