mirror of
https://github.com/microsoft/edit.git
synced 2025-12-23 07:07:25 +00:00
Fix command palette selection highlight
This commit is contained in:
parent
597bddef62
commit
db4e3cff17
1 changed files with 1 additions and 1 deletions
|
|
@ -238,7 +238,7 @@ pub fn draw_command_palette(ctx: &mut Context, state: &mut State) {
|
|||
} else {
|
||||
for (idx, entry) in filtered.iter().take(visible_len).enumerate() {
|
||||
ctx.next_block_id_mixin(idx as u64);
|
||||
if idx == state.command_palette_selection {
|
||||
if idx == selection {
|
||||
ctx.attr_background_rgba(ctx.indexed_alpha(IndexedColor::Blue, 3, 4));
|
||||
ctx.attr_foreground_rgba(ctx.indexed(IndexedColor::BrightWhite));
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue