diff --git a/src/cut.c b/src/cut.c index 0d591ab9ea5b93bf99be66ec6cfe0cdb005b7181..9fc9db4cc4d7a6aac1973702f70791af1969316f 100644 --- a/src/cut.c +++ b/src/cut.c @@ -287,10 +287,7 @@ 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 + ensure_line_is_visible(); refresh_needed = TRUE; diff --git a/src/files.c b/src/files.c index 595c63c55a2262289ad9a647ce8ed0edbbc8685d..acf51dcb102a5aa87bf6a3beaab2f5bfbfaa5d55 100644 --- a/src/files.c +++ b/src/files.c @@ -1278,14 +1278,11 @@ void do_insertfile(void) openfile->current_x != was_current_x) set_modified(); - /* Update the cursor position to account for the number - * of lines inserted. */ + /* Update the cursor position to account for inserted lines. */ reset_cursor(); -#ifndef NANO_TINY - if (ISSET(SOFTWRAP)) - ensure_line_is_visible(); -#endif + ensure_line_is_visible(); + refresh_needed = TRUE; }