From 3b3a6b12a7bb18a16b51cda5577919b60a6b4324 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Fri, 28 Feb 2020 10:28:23 +0100 Subject: [PATCH] tweaks: remove two superfluous checks The single check when creating any CUT undo item is enough. --- src/text.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/text.c b/src/text.c index 9de8f0d8..36b31766 100644 --- a/src/text.c +++ b/src/text.c @@ -473,9 +473,6 @@ void undo_cut(undostruct *u) else goto_line_posx(u->tail_lineno, u->tail_x); - if (!u->cutbuffer) - die("Empty cut -- please report a bug\n"); - copy_from_buffer(u->cutbuffer); /* If originally the last line was cut too, remove an extra magic line. */ @@ -495,9 +492,6 @@ void redo_cut(undostruct *u) goto_line_posx(u->head_lineno, u->head_x); - if (!u->cutbuffer) - die("Empty paste -- please report a bug\n"); - cutbuffer = NULL; openfile->mark = line_from_number(u->tail_lineno);