Skip to content

Commit

Permalink
fix division by zero when prompt completion area is too small (#9524)
Browse files Browse the repository at this point in the history
  • Loading branch information
diegostafa authored Feb 6, 2024
1 parent 1d87c6a commit a37af2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-term/src/ui/prompt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ impl Prompt {
height,
);

if !self.completion.is_empty() {
if completion_area.height > 0 && !self.completion.is_empty() {
let area = completion_area;
let background = theme.get("ui.menu");

Expand Down

0 comments on commit a37af2d

Please sign in to comment.