Closed MikaelFangel closed 4 months ago
Describe the bug When you use choose, press / to filter and then presses spacebar twice it crashed with an index out of bounds error.
choose
/
spacebar
To Reproduce Steps to reproduce the behavior:
gum choose --no-limit x y z
Expected behavior Filter shouldn't crashes from multiple spaces when in filter.
Additional context Error message produced:
Caught panic: runtime error: index out of range [0] with length 0 Restoring terminal...
Typing x repeatedly can also crash the program.
Just a note that this is now available in Gum v0.14.2.
Describe the bug When you use
choose
, press/
to filter and then pressesspacebar
twice it crashed with an index out of bounds error.To Reproduce Steps to reproduce the behavior:
gum choose --no-limit x y z
/
to enter filterspacebar
twiceExpected behavior Filter shouldn't crashes from multiple spaces when in filter.
Additional context Error message produced: