summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-10-29 15:12:06 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-10-29 15:21:06 (EDT)
commite814ef8d097f391b5c65772cf35b72f9ade1475e (patch)
tree6a7787255a2a924a1c50737bc2b67154b172fa00 /src
parent40a9ca084c494ed43c9373968e87bed01aa35dff (diff)
downloadfirman.sh-e814ef8d097f391b5c65772cf35b72f9ade1475e.zip
firman.sh-e814ef8d097f391b5c65772cf35b72f9ade1475e.tar.gz
firman.sh-e814ef8d097f391b5c65772cf35b72f9ade1475e.tar.bz2
tui_show_menu(): Don't scroll down beyond list
Diffstat (limited to 'src')
-rw-r--r--src/ui/tui.sh3
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
;;