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

[Low Priority] Panic if opening large amounts of files with --vsplit and --hsplit #12158

Open
NikitaRevenco opened this issue Nov 30, 2024 · 1 comment

Comments

@NikitaRevenco
Copy link
Contributor

NikitaRevenco commented Nov 30, 2024

When we try open 200 files in a split:

hx --vsplit {1..200}

Helix will panic with the following message:

thread 'main' panicked at helix-tui/src/buffer.rs:516:21:
index out of bounds: the len is 4788 but the index is 4788
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

There should be some kind of error message when trying to pass a large number to --vsplit and --hsplit

@kirawi
Copy link
Member

kirawi commented Nov 30, 2024

#4642

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants