1
1

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>
Этот коммит содержится в:
David Lawrence Ramsey 2017-01-05 21:40:23 -06:00 коммит произвёл Benno Schulenberg
родитель acb394aec0
Коммит f35c3dbd57

Просмотреть файл

@ -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;
}