-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panic when exiting search #5632
Comments
|
I can reproduce this. On a debug build the backtrace is:
When switching windows I think we want to cancel out of the prompt first. It looks like we're trying to jump to the next search match and if the split's file is shorter than the search file, we get a panic. |
I can also reproduce. The same crash also happens for other prompts like I think the correct fix for this would be to call |
Summary
Editor panics when exiting search
Reproduction Steps
I tried this:
hx .
I expected this to happen:
The search dialog to close
Instead, this happened:
https://asciinema.org/a/eLc59nJruhSfKI2qW7whCK5ig
Helix log
~/.cache/helix/helix.log
Platform
Linux (Debian 11)
Terminal Emulator
st
Helix Version
helix 22.12 (7ac72a3)
The text was updated successfully, but these errors were encountered: