Skip to content

Commit

Permalink
Right align thicker scrollbar in completion popup
Browse files Browse the repository at this point in the history
- Aligns the scollbar to the right edge of the popup rather than at
  a margin of one.
- Changes the scrollbar block character to be thicker.
  • Loading branch information
sudormrfbin committed Jun 11, 2022
1 parent 0b8a00a commit ed3ecd0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions helix-term/src/ui/menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,8 @@ impl<T: Item + 'static> Component for Menu<T> {
let is_marked = i >= scroll_line && i < scroll_line + scroll_height;

if !fits && is_marked {
let cell = &mut surface[(area.x + area.width - 2, area.y + i as u16)];
cell.set_symbol("▐");
// cell.set_style(selected);
// cell.set_style(if is_marked { selected } else { style });
let cell = &mut surface[(area.x + area.width - 1, area.y + i as u16)];
cell.set_symbol("🮊"); // right three quarters block
}
}
}
Expand Down

0 comments on commit ed3ecd0

Please sign in to comment.