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

Panic when creating too many splits #1878

Closed
Raspberry1111 opened this issue Mar 29, 2022 · 1 comment
Closed

Panic when creating too many splits #1878

Raspberry1111 opened this issue Mar 29, 2022 · 1 comment
Labels
C-bug Category: This is a bug R-duplicate Duplicated issue: please refer to the linked issue

Comments

@Raspberry1111
Copy link

Summary

When creating splits with C-W + s or C-W + v, helix will panic if you create to many with an index out of bounds error.

Reproduction Steps

I tried this:

Make tons of horizontal and vertical splits
Ex: Spam C-W + s and C-W + v

I expected this to happen:

The windows to open or for helix to stop opening them and warn me that I created to many

Instead, this happened:

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

Helix log

No response

Platform

Linux

Terminal Emulator

kitty 0.19.3

Helix Version

helix 0.6.0 (838cfcc)

@Raspberry1111 Raspberry1111 added the C-bug Category: This is a bug label Mar 29, 2022
@archseer
Copy link
Member

Duplicate of #1083

@archseer archseer marked this as a duplicate of #1083 Mar 29, 2022
@kirawi kirawi added the R-duplicate Duplicated issue: please refer to the linked issue label Apr 3, 2022
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 R-duplicate Duplicated issue: please refer to the linked issue
Projects
None yet
Development

No branches or pull requests

3 participants