mirror of
git://git.sv.gnu.org/nano.git
synced 2025-03-23 09:53:05 +03:00
tweaks: discard some conditional compilation
This commit is contained in:
parent
cf75da9888
commit
5ca765f107
@ -287,10 +287,7 @@ 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
|
ensure_line_is_visible();
|
||||||
if (ISSET(SOFTWRAP))
|
|
||||||
ensure_line_is_visible();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
refresh_needed = TRUE;
|
refresh_needed = TRUE;
|
||||||
|
|
||||||
|
@ -1278,14 +1278,11 @@ void do_insertfile(void)
|
|||||||
openfile->current_x != was_current_x)
|
openfile->current_x != was_current_x)
|
||||||
set_modified();
|
set_modified();
|
||||||
|
|
||||||
/* Update the cursor position to account for the number
|
/* Update the cursor position to account for inserted lines. */
|
||||||
* of lines inserted. */
|
|
||||||
reset_cursor();
|
reset_cursor();
|
||||||
|
|
||||||
#ifndef NANO_TINY
|
ensure_line_is_visible();
|
||||||
if (ISSET(SOFTWRAP))
|
|
||||||
ensure_line_is_visible();
|
|
||||||
#endif
|
|
||||||
refresh_needed = TRUE;
|
refresh_needed = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user