nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 5ca765f10766c89bf54a001f3438eb4d12a4ad36
parent cf75da9888a1b3b4b1c7b6052961a1920a29385e
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Mon,  9 Jan 2017 15:09:06 +0100

tweaks: discard some conditional compilation

Diffstat:
Msrc/cut.c | 5+----
Msrc/files.c | 9+++------
2 files changed, 4 insertions(+), 10 deletions(-)

diff --git 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 @@ -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; }