Commit d7168092 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

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

This avoids https://savannah.gnu.org/bugs/?49298.
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment