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

This avoids https://savannah.gnu.org/bugs/?49298.
This commit is contained in:
Benno Schulenberg 2016-10-10 13:16:32 +02:00
parent 8041627cc3
commit d716809228

View File

@ -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 {