From cc24c5f2e0c74774add0113f0bea2ed6c5aab28e Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 25 Aug 2020 18:39:50 +0200 Subject: 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). --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 76fa3802..c5e9e6b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -62,6 +62,8 @@ * Default `--server` socket path to use `$WAYLAND_DISPLAY` instead of `$XDG_SESSION_ID` (https://codeberg.org/dnkl/foot/issues/55). * Trailing empty cells are no longer highlighted in mouse selections. +* Scrollback position indicator is now based on the number of _used_ + scrollback lines, instead of the _total_ number of scrollback lines. ### Fixed -- cgit v1.3