From b01431e38f96c8d42a5fa37c1b1e1f46bfb60f3a Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Wed, 12 Aug 2020 18:45:35 +0200 Subject: search: fix viewport not moving if we tried to move it past the scrollback start If the match was somewhere near the scrollback beginning, and if the entire scrollback hadn't yet been filled, we ended up trying to move the viewport past the beginning of the scrollback, which we then adjusted in the wrong direction, causing the viewport to not move at all. Besides being a bad user experience, since the new match wasn't visible, foot would also crash if you manually scrolled up to the match. --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index a920e276..3aac7cfa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -57,6 +57,9 @@ * Mouse cursor style in top and left margins. * Selection is now **updated** when the cursor moves outside the grid (https://codeberg.org/dnkl/foot/issues/70). +* Viewport sometimes not moving when doing a scrollback search. +* Crash when cancelling a scrollback search and the window had been + resized while searching. ### Security -- cgit v1.3