Skip to content

Commit

Permalink
fix division by zero when prompt completion area is too small (helix-…
Browse files Browse the repository at this point in the history
  • Loading branch information
diegostafa authored and postsolar committed Apr 4, 2024
1 parent 0fd7e0a commit 5b96a61
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 5b96a61

Please sign in to comment.