Skip to content

Commit

Permalink
refactor: more readable variable name: default_completion_color
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaRevenco committed Dec 7, 2024
1 parent 032bd5e commit 5aca6f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helix-term/src/ui/prompt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ impl Prompt {
pub fn render_prompt(&self, area: Rect, surface: &mut Surface, cx: &mut Context) {
let theme = &cx.editor.theme;
let prompt_color = theme.get("ui.text");
let completion_color = theme.get("ui.menu");
let default_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");
Expand Down Expand Up @@ -457,7 +457,7 @@ impl Prompt {
} else if has_custom_style {
completion.style
} else {
completion_color
default_completion_color
};

surface.set_stringn(
Expand Down

0 comments on commit 5aca6f3

Please sign in to comment.