From e814ef8d097f391b5c65772cf35b72f9ade1475e Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 29 Oct 2015 15:12:06 -0400 Subject: tui_show_menu(): Don't scroll down beyond list --- (limited to 'src/ui/tui.sh') 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 ;; -- cgit v0.9.1