commit 6c4d0d87f09ecbac5bcd0c2d9f812761e3b5637b
parent a962bceca60b7c6d1931ff89afd78cfda9cbdf15
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Fri, 3 May 2019 12:41:49 +0200
tweaks: remove a condition that has become superfluous
After the previous change, a copy command will break a chain of cut
commands, so there is no need any more to verify that the line number
hasn't changed.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/cut.c b/src/cut.c
@@ -380,11 +380,11 @@ void do_cut_text_void(void)
/* Only add a new undo item when the current item is not a CUT or when
* the current cut is not contiguous with the previous cutting. */
- if (openfile->last_action != CUT ||
- openfile->current_undo->mark_begin_lineno != openfile->current->lineno ||
- !keep_cutbuffer)
+ if (openfile->last_action != CUT || !keep_cutbuffer)
add_undo(CUT);
+
do_cut_text(FALSE, openfile->mark != NULL, FALSE, FALSE);
+
update_undo(CUT);
#else
if (is_cuttable(FALSE))