tweaks: remove two superfluous checks
The single check when creating any CUT undo item is enough.master
parent
50213eee81
commit
3b3a6b12a7
|
@ -473,9 +473,6 @@ void undo_cut(undostruct *u)
|
||||||
else
|
else
|
||||||
goto_line_posx(u->tail_lineno, u->tail_x);
|
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);
|
copy_from_buffer(u->cutbuffer);
|
||||||
|
|
||||||
/* If originally the last line was cut too, remove an extra magic line. */
|
/* 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);
|
goto_line_posx(u->head_lineno, u->head_x);
|
||||||
|
|
||||||
if (!u->cutbuffer)
|
|
||||||
die("Empty paste -- please report a bug\n");
|
|
||||||
|
|
||||||
cutbuffer = NULL;
|
cutbuffer = NULL;
|
||||||
|
|
||||||
openfile->mark = line_from_number(u->tail_lineno);
|
openfile->mark = line_from_number(u->tail_lineno);
|
||||||
|
|
Loading…
Reference in New Issue