softwrap: ensure the current line is fully visible after inserting a file

This fixes https://savannah.gnu.org/bugs/?49994.
Reported-by: David Lawrence Ramsey <pooka109@gmail.com>
master
David Lawrence Ramsey 2017-01-05 21:40:23 -06:00 committed by Benno Schulenberg
parent acb394aec0
commit f35c3dbd57
1 changed files with 4 additions and 0 deletions

View File

@ -1282,6 +1282,10 @@ void do_insertfile(void)
* of lines inserted. */
reset_cursor();
#ifndef NANO_TINY
if (ISSET(SOFTWRAP))
ensure_line_is_visible();
#endif
refresh_needed = TRUE;
}