fix division by zero when prompt completion area is too small (#9524)

pull/9548/head
Diego 5 months ago committed by GitHub
parent 1d87c6a999
commit a37af2dcbf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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");

Loading…
Cancel
Save