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
parent
acb394aec0
commit
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue