nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 8aea8625be8da2110b37ba832f3b829fc0d7066d
parent 931bf96c1d0cf7a6e19555d0e1ea4ecf9591a4fa
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Thu, 18 Nov 2021 12:22:27 +0100

replacing: keep the spotlighted occurrence in view, also with --zero

Also when adjusting the viewport, after the cursor has gone offscreen
(by toggling the help lines, for example), should the SHIM be applied.

This fixes https://savannah.gnu.org/bugs/?61503.

Bug existed since commit 03637030 from last week.

Diffstat:
Msrc/winio.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/winio.c b/src/winio.c @@ -3465,7 +3465,7 @@ void adjust_viewport(update_type manner) else if (manner == CENTERING) goal = editwinrows / 2; else if (!current_is_above_screen()) - goal = editwinrows - 1; + goal = editwinrows - 1 - SHIM; openfile->edittop = openfile->current; #ifndef NANO_TINY