-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
kill_to_line_end + undo crashs helix #5261
Comments
I can reproduce the odd undo behavior but I haven't been able to reproduce the crash yet. If you can reproduce the crash, could you paste the backtrace (setting I'm also curious if this happens if you make a keybinding for this rather than executing it from the command palette ( |
I can reproduce the bug. The undo history has to be populated for helix to crash, otherwise undo simply displays "already at the latest change". Here's a backtrace.
I also noticed the same behaviour with undo not doing anything or doing something unexpected when using other commands from the palette so my best guess is that executing command from a palette doesn't update the changes history which is why this can't be observed when you use a keybind to execute the command. |
Summary
using kill_to_line_end and undo crashs helix sometimes. Other times, the first undo throws:
Already at oldest change.
Reproduction Steps
SPC ? kill_end_of_line
u
Helix log
https://pasteio.com/xr14w9vbXb60
Platform
macOS
Terminal Emulator
alacritty + tmux
Helix Version
helix 22.12 (96ff64a)
The text was updated successfully, but these errors were encountered: