mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-28 01:40:17 -05:00
render: scrollback indicator: subtract visible rows from populated rows
This prevents the indicator from starting too high up when the number of used scrollback rows is low.
This commit is contained in:
parent
cc24c5f2e0
commit
1109865c8e
1 changed files with 1 additions and 1 deletions
2
render.c
2
render.c
|
|
@ -1424,7 +1424,7 @@ render_scrollback_position(struct terminal *term)
|
||||||
double percent =
|
double percent =
|
||||||
rebased_view + term->rows == populated_rows
|
rebased_view + term->rows == populated_rows
|
||||||
? 1.0
|
? 1.0
|
||||||
: (double)rebased_view / populated_rows;
|
: (double)rebased_view / (populated_rows - term->rows);
|
||||||
|
|
||||||
wchar_t _text[64];
|
wchar_t _text[64];
|
||||||
const wchar_t *text = _text;
|
const wchar_t *text = _text;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue