Commit f35c3dbd authored by David Lawrence Ramsey's avatar David Lawrence Ramsey Committed by Benno Schulenberg
Browse files

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

This fixes https://savannah.gnu.org/bugs/?49994

.
Reported-by: default avatarDavid Lawrence Ramsey <pooka109@gmail.com>
No related merge requests found
Showing with 4 additions and 0 deletions
+4 -0
......@@ -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;
}
......
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