mirror of https://github.com/helix-editor/helix
fix division by zero when prompt completion area is too small (#9524)
parent
1d87c6a999
commit
a37af2dcbf
|
@ -393,7 +393,7 @@ impl Prompt {
|
||||||
height,
|
height,
|
||||||
);
|
);
|
||||||
|
|
||||||
if !self.completion.is_empty() {
|
if completion_area.height > 0 && !self.completion.is_empty() {
|
||||||
let area = completion_area;
|
let area = completion_area;
|
||||||
let background = theme.get("ui.menu");
|
let background = theme.get("ui.menu");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue