on master help sign in
Clear statusline while prompt is visible (#7646)
commit8f1c6456f391e9590d80e4e7c34283040d13a726 authorPascal Kuthe <pascal.kuthe@semimod.de> dateMon 17 Jul 2023, 07:09 (3 years ago) parent68a98ac
1 file changed+2
helix-term/src/ui/prompt.rs+2
helix-term/src/ui/prompt.rs+2
@@ -356,6 +356,7 @@ impl Prompt {
356356 let completion_color = theme.get("ui.menu");
357357 let selected_color = theme.get("ui.menu.selected");
358358 let suggestion_color = theme.get("ui.text.inactive");
359+ let background = theme.get("ui.background");
359360 // completion
360361
361362 let max_len = self
@@ -451,6 +452,7 @@ impl Prompt {
451452 }
452453
453454 let line = area.height - 1;
455+ surface.clear_with(area.clip_top(line), background);
454456 // render buffer text
455457 surface.set_string(area.x, area.y + line, &self.prompt, prompt_color);
456458