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
For context, I have made an insert mode binding of "tab" = ["save_selection", "smart_tab"] so that I can use C-o to go back if I smart tab out too many times. I have encountered this crash as described in the reproduction steps detailed below.
Reproduction Steps
Bind "tab" = ["save_selection", "smart_tab"] in insert mode as described above.
Open a new buffer.
Enter either of the following key sequences:
o<tab><esc>
i<ret><tab><esc>
Helix crashes with the following error message:
thread 'main' panicked at 'Positions [(2, Before)] are out of range for changeset len 1!', helix-core/src/transaction.rs:461:9
Helix log
Nothing of note was produced in the log file (with -vv).
Platform
MacOS
Terminal Emulator
iTerm2 3.5.0beta11
Helix Version
helix 23.05 (e1a9f6e0)
The text was updated successfully, but these errors were encountered:
Hmm, that's strange, I'll look into this. At first glance, I'm not sure how smart tab could be involved here; all it's doing is moving the cursor. I wouldn't expect it to be any different than, e.g., moving with the arrow keys.
The problem is probably save_selection not working in insert_mode. That seems like the typical "commands assume there is a revision/don't work with insert mode crash
Summary
For context, I have made an insert mode binding of
"tab" = ["save_selection", "smart_tab"]
so that I can useC-o
to go back if I smart tab out too many times. I have encountered this crash as described in the reproduction steps detailed below.Reproduction Steps
"tab" = ["save_selection", "smart_tab"]
in insert mode as described above.o<tab><esc>
i<ret><tab><esc>
Helix crashes with the following error message:
Helix log
Nothing of note was produced in the log file (with
-vv
).Platform
MacOS
Terminal Emulator
iTerm2 3.5.0beta11
Helix Version
helix 23.05 (e1a9f6e0)
The text was updated successfully, but these errors were encountered: