commit 3b3a6b12a7bb18a16b51cda5577919b60a6b4324
parent 50213eee819ba4ad5a55745357111c624c3a0ef9
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Fri, 28 Feb 2020 10:28:23 +0100
tweaks: remove two superfluous checks
The single check when creating any CUT undo item is enough.
Diffstat:
1 file changed, 0 insertions(+), 6 deletions(-)
diff --git 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);