Skip to content
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

Crash in update_positions #10105

Closed
timokoesters opened this issue Apr 2, 2024 · 2 comments
Closed

Crash in update_positions #10105

timokoesters opened this issue Apr 2, 2024 · 2 comments
Labels
C-bug Category: This is a bug

Comments

@timokoesters
Copy link

timokoesters commented Apr 2, 2024

Summary

thread 'main' panicked at 'Positions [(4, After), (5, Before)] are out of range for changeset len 1!', helix-core/src/transaction.rs:478:9

Reproduction Steps

In the config, add this:

[keys.insert]
"C-l" = [
"select_mode",
"goto_file_start",
":pipe cat",
]

Open a new file, then:

  1. Start insert mode
  2. type "test", don't leave insert mode
  3. Press ctrl+L

Helix log

No response

Platform

Linux

Terminal Emulator

alacritty

Installation Method

compiled myself

Helix Version

helix 24.3 (88d455a)

@timokoesters timokoesters added the C-bug Category: This is a bug label Apr 2, 2024
@timokoesters
Copy link
Author

This bug does not happen if I use the same commands in [keys.normal]

@pascalkuthe
Copy link
Member

Duplicate of #3501

@pascalkuthe pascalkuthe marked this as a duplicate of #3501 Apr 2, 2024
@pascalkuthe pascalkuthe closed this as not planned Won't fix, can't repro, duplicate, stale Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

2 participants