mirror of
https://github.com/EnumeratedDev/typer.git
synced 2026-10-31 11:31:48 +00:00
Fix cursor being at wrong position in input bar when default input is set
This commit is contained in:
1 parent
8d9de7b732
commit
1b5ce6b7f8
1 file changed
+1
-1
+1
-1
@@ -18,7 +18,7 @@ func RequestInput(window *Window, text string, defaultInput string) chan string
|
||||
request := &TyperInputRequest{
|
||||
Text: text,
|
||||
input: defaultInput,
|
||||
cursorPos: 0,
|
||||
cursorPos: len(defaultInput),
|
||||
inputChannel: make(chan string),
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user