You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i got panic with prompt.Custom when the prefix is bigger than 80 letters.
i checked with 75 letters and there was no panic.
looks like there is a bug in the code where you increase and decrease indexes: start++ size-- pos--
reproduced only on linux OS
A long default in prompt.BasicDefault() results in a "panic: runtime error: slice bounds out of range", for example:
_, err = prompt.BasicDefault("Some Prompt (blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah ):", "somedefault")
Results in this panic:
The text was updated successfully, but these errors were encountered: