nano

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

commit 2288abcd4905c4eb9a65953d682e37e729c8974a
parent 42fde1cbc6d44be85c51e60d63b555128253eacd
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Thu,  5 Mar 2020 12:22:20 +0100

tweaks: use the variable that suits 'END' better

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

diff --git a/src/text.c b/src/text.c @@ -779,7 +779,7 @@ void do_redo(void) return; case COUPLE_END: redidmsg = u->strdata; - goto_line_posx(u->head_lineno, u->head_x); + goto_line_posx(u->tail_lineno, u->tail_x); adjust_viewport(STATIONARY); break; case INDENT: @@ -1355,8 +1355,8 @@ void update_undo(undo_type action) case COUPLE_BEGIN: break; case COUPLE_END: - u->head_lineno = openfile->current->lineno; - u->head_x = openfile->current_x; + u->tail_lineno = openfile->current->lineno; + u->tail_x = openfile->current_x; break; default: die("Bad undo type -- please report a bug\n");