From d716809228a67946d844b1611b4a11489ba26a3c Mon Sep 17 00:00:00 2001 From: Benno Schulenberg <bensberg@justemail.net> Date: Mon, 10 Oct 2016 13:16:32 +0200 Subject: [PATCH] scrolling: don't put the last line at the bottom when softwrap in on This avoids https://savannah.gnu.org/bugs/?49298. --- src/search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.c b/src/search.c index 7ab6fce6..cd23566a 100644 --- 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 { -- GitLab