aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPascal Kuthe2023-07-17 05:09:07 +0000
committerGitHub2023-07-17 05:09:07 +0000
commit8f1c6456f391e9590d80e4e7c34283040d13a726 (patch)
tree805ce3bc9573a0ad29c336bd8b026f33424573fc
parent68a98ac36bc0b45c65992cd5c9bea34facd3483e (diff)
Clear statusline while prompt is visible (#7646)
-rw-r--r--helix-term/src/ui/prompt.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/helix-term/src/ui/prompt.rs b/helix-term/src/ui/prompt.rs
index a9ccfb73..4f383bf5 100644
--- a/helix-term/src/ui/prompt.rs
+++ b/helix-term/src/ui/prompt.rs
@@ -356,6 +356,7 @@ impl Prompt {
let completion_color = theme.get("ui.menu");
let selected_color = theme.get("ui.menu.selected");
let suggestion_color = theme.get("ui.text.inactive");
+ let background = theme.get("ui.background");
// completion
let max_len = self
@@ -451,6 +452,7 @@ impl Prompt {
}
let line = area.height - 1;
+ surface.clear_with(area.clip_top(line), background);
// render buffer text
surface.set_string(area.x, area.y + line, &self.prompt, prompt_color);