nano

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

commit 7cd2a7da7c0c4682e72f9ce14d3d33186b7d7218
parent 4f67f364bc08adddedc0afcfc7214008e2cf654c
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Thu, 27 Feb 2020 15:09:36 +0100

tweaks: remove a superfluous assignment, and reshuffle a call

Diffstat:
Msrc/text.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/text.c b/src/text.c @@ -525,8 +525,6 @@ void do_undo(void) if (u->type <= REPLACE) line = line_from_number(u->tail_lineno); - openfile->current_x = u->head_x; - switch (u->type) { case ADD: /* TRANSLATORS: The next thirteen strings describe actions @@ -576,10 +574,10 @@ void do_undo(void) break; case REPLACE: undidmsg = _("replacement"); - goto_line_posx(u->head_lineno, u->head_x); data = u->strdata; u->strdata = line->data; line->data = data; + goto_line_posx(u->head_lineno, u->head_x); break; #ifdef ENABLE_WRAPPING case SPLIT_END: