nano

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

commit d716809228a67946d844b1611b4a11489ba26a3c
parent 8041627cc3bf0bfdbf53bfb9e579ef8a4edc51db
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Mon, 10 Oct 2016 13:16:32 +0200

scrolling: don't put the last line at the bottom when softwrap in on

This avoids https://savannah.gnu.org/bugs/?49298.

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

diff --git a/src/search.c b/src/search.c @@ -942,7 +942,7 @@ void do_gotolinecolumn(ssize_t line, ssize_t column, bool use_answer, openfile->placewewant = column - 1; /* When the position was manually given, center the target line. */ - if (interactive) { + if (interactive || ISSET(SOFTWRAP)) { edit_update(CENTERING); edit_refresh(); } else {