diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-08-25 16:39:50 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-08-25 16:45:04 +0000 |
| commit | cc24c5f2e0c74774add0113f0bea2ed6c5aab28e (patch) | |
| tree | eff52cdb67ff9810e93c0b27126e585c7ae3df61 /scripts | |
| parent | Merge branch 'message-fix' into master (diff) | |
render: scrollback position: only count _used_ scrollback lines
When calculating where in the scrollback history we are, we previously
did this against the total number of scrollback lines. I.e. the
`scrollback.lines` setting in `footrc`.
Now, we count only the used/allocated scrollback lines.
Note that the initial indicator position might still seem to start a
bit high up, if the number of used scrollback lines is low. This is
because we use the *top* of the screen for the current position. Thus,
we'll never be at the bottom (except for the special case when
we're *really* at the bottom).
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
