Commit 5ca765f1 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: discard some conditional compilation

parent cf75da98
Showing with 4 additions and 10 deletions
+4 -10
......@@ -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;
......
......@@ -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;
}
......
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