Skip to content

Ropey crash when pressing . key #15341

@jobukkit

Description

@jobukkit

Summary

I managed to crash Helix three times by showing hover documentation for an incompletely written Rust function call, then clicking somewhere, then pressing the . key. I can no longer recreate the crash now though, so I'm not sure what specific circumstances led to it and whether any action before pressing . was even relevant.

thread 'main' panicked at /build/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ropey-1.6.1/src/rope.rs:546:37:
called `Result::unwrap()` on an `Err` value: Char range out of bounds: char range 298..309, Rope/RopeSlice char length 305

Reproduction Steps

No response

Helix log

Platform

CachyOS Linux

Terminal Emulator

Terminology 1.14.0

Installation Method

pacman

Helix Version

helix 25.07.1 (8e78600a)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions