diff options
-rw-r--r-- | src/ui/tui.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/tui.sh b/src/ui/tui.sh index 76da51c..2a9a1cd 100644 --- a/src/ui/tui.sh +++ b/src/ui/tui.sh @@ -434,7 +434,7 @@ tui_show_prompt() "${cmd}")" ;; KEY_SPACE) - [ ${curpos} -lt ${len} ] || continue + [ ${#input} -lt ${len} ] || continue key=' ' i=0 mask='' @@ -458,7 +458,7 @@ tui_show_prompt() ;; KEY_*);; *) - [ ${curpos} -lt ${len} ] || continue + [ ${#input} -lt ${len} ] || continue i=0 mask='' while [ ${i} -lt ${curpos} ]; do |