summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ui/tui.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/tui.sh b/src/ui/tui.sh
index e0ae20b..0bc5da2 100644
--- a/src/ui/tui.sh
+++ b/src/ui/tui.sh
@@ -336,7 +336,7 @@ tui_show_prompt()
local i=
local iline=''
local bline=''
- local curpos=0
+ local curpos=
local focus=0
local key=
local mask=
@@ -364,6 +364,8 @@ tui_show_prompt()
i=$(($i + 1))
done
+ curpos=${#input}
+
# Event loop.
while :; do
# Draw a button.