mirror of
https://github.com/EnumeratedDev/typer.git
synced 2026-09-15 21:26:11 +00:00
Fix cursor being at wrong position in input bar when default input is set
This commit is contained in:
+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