From 9bd60e7d5dea084068842ea1f01a31c22f8c64ab Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 2 Oct 2019 17:46:20 +0200 Subject: [PATCH] tweaks: frob a few comments --- src/text.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/text.c b/src/text.c index bcd12a16..5bd2691a 100644 --- a/src/text.c +++ b/src/text.c @@ -476,10 +476,9 @@ void handle_comment_action(undostruct *u, bool undoing, bool add_comment) #define redo_paste undo_cut #define undo_paste redo_cut -/* Undo a cut, or redo an uncut. */ +/* Undo a cut, or redo a paste. */ void undo_cut(undostruct *u) { - /* Get to where we need to uncut from. */ if (u->xflags & WAS_WHOLE_LINE) goto_line_posx(u->mark_begin_lineno, 0); else @@ -500,7 +499,7 @@ void undo_cut(undostruct *u) goto_line_posx(u->mark_begin_lineno, u->mark_begin_x); } -/* Redo a cut, or undo an uncut. */ +/* Redo a cut, or undo a paste. */ void redo_cut(undostruct *u) { linestruct *oldcutbuffer = cutbuffer; @@ -540,6 +539,7 @@ void do_undo(void) f = line_from_number(u->mark_begin_lineno); openfile->current_x = u->begin; + switch (u->type) { case ADD: /* TRANSLATORS: The next thirteen strings describe actions