Skip to content

Commit

Permalink
Clear statusline while prompt is visible (helix-editor#7646)
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalkuthe authored Jul 17, 2023
1 parent 68a98ac commit 8f1c645
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helix-term/src/ui/prompt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 8f1c645

Please sign in to comment.