From cd5a652edd730ba8a52f72880f73eeee1913022e Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 29 Oct 2015 22:43:21 -0400 Subject: tui_show_prompt(): Place cursor at end of default input --- (limited to 'src/ui') 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. -- cgit v0.9.1