softwrap: when pasting an overlong line, ensure it is fully visible

This fixes https://savannah.gnu.org/bugs/?50009.
master
Benno Schulenberg 2017-01-09 15:00:29 +01:00
parent 14c62dbf11
commit cf75da9888
1 changed files with 5 additions and 0 deletions

View File

@ -287,6 +287,11 @@ void do_uncut_text(void)
/* Update the cursor position to account for the inserted lines. */
reset_cursor();
#ifndef NANO_TINY
if (ISSET(SOFTWRAP))
ensure_line_is_visible();
#endif
refresh_needed = TRUE;
#ifndef DISABLE_COLOR