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

attempt to divide by zero when resizing the terminal #9523

Closed
diegostafa opened this issue Feb 4, 2024 · 0 comments · Fixed by #9524
Closed

attempt to divide by zero when resizing the terminal #9523

diegostafa opened this issue Feb 4, 2024 · 0 comments · Fixed by #9524
Labels
C-bug Category: This is a bug

Comments

@diegostafa
Copy link
Contributor

Summary

similarly to #1403, the program crashes when resizing the terminal while the preview/info box is displayed
see the reproduction steps below

Reproduction Steps

I tried this:

  1. open a terminal
  2. run helix
  3. press colon to open the prompt
  4. press tab to show the preview/info box above the items
  5. make the terminal really small (0 x 0)

I expected this to happen:

  • helix resizes accordingly

Instead, this happened:

  • helix crashed

Helix log

thread 'main' panicked at helix-term/src/ui/prompt.rs:404:34:
attempt to divide by zero

Platform

arch linux

Terminal Emulator

alacritty

Installation Method

pacman

Helix Version

helix 23.10

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

Successfully merging a pull request may close this issue.

1 participant