diff --git a/src/cut.c b/src/cut.c index aa42d9431e8345b0027729871c4ca84f842af1e5..0d591ab9ea5b93bf99be66ec6cfe0cdb005b7181 100644 --- a/src/cut.c +++ b/src/cut.c @@ -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