Commit cf75da98 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

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

This fixes https://savannah.gnu.org/bugs/?50009.
No related merge requests found
Showing with 5 additions and 0 deletions
+5 -0
......@@ -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
......
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