mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-26 14:51:36 +03:00
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:
parent
8041627cc3
commit
d716809228
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user