mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-06 11:46:42 +01:00
fix scrollbar indexing
This commit is contained in:
parent
6ee0147f43
commit
c735522525
1 changed files with 1 additions and 1 deletions
|
|
@ -167,7 +167,7 @@ impl Content<TuiOut> for ScrollbarH {
|
|||
if i < (Self::ICON_DEC.len()) {
|
||||
cell.set_fg(Rgb(255, 255, 255));
|
||||
cell.set_bg(Rgb(0, 0, 0));
|
||||
cell.set_char(Self::ICON_DEC[x as usize]);
|
||||
cell.set_char(Self::ICON_DEC[i as usize]);
|
||||
} else if i > (w as usize - Self::ICON_INC.len()) {
|
||||
cell.set_fg(Rgb(255, 255, 255));
|
||||
cell.set_bg(Rgb(0, 0, 0));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue