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 Schuyler Mortimer committed Jul 10, 2024
1 parent 344e4ae commit 84a5bda
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 84a5bda

Please sign in to comment.