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 cosmikwolf committed Feb 26, 2024
1 parent 91362e4 commit c84f3f9
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 c84f3f9

Please sign in to comment.