softwrap: when pasting an overlong line, ensure it is fully visible
This fixes https://savannah.gnu.org/bugs/?50009.master
parent
14c62dbf11
commit
cf75da9888
|
@ -287,6 +287,11 @@ void do_uncut_text(void)
|
||||||
/* Update the cursor position to account for the inserted lines. */
|
/* Update the cursor position to account for the inserted lines. */
|
||||||
reset_cursor();
|
reset_cursor();
|
||||||
|
|
||||||
|
#ifndef NANO_TINY
|
||||||
|
if (ISSET(SOFTWRAP))
|
||||||
|
ensure_line_is_visible();
|
||||||
|
#endif
|
||||||
|
|
||||||
refresh_needed = TRUE;
|
refresh_needed = TRUE;
|
||||||
|
|
||||||
#ifndef DISABLE_COLOR
|
#ifndef DISABLE_COLOR
|
||||||
|
|
Loading…
Reference in New Issue