Fix cursor being at wrong position in input bar when default input is set

This commit is contained in:
EnumDev 2025-06-22 18:46:33 +03:00
parent 8d9de7b732
commit 1b5ce6b7f8

View File

@ -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),
}