tweaks: remove two superfluous checks
The single check when creating any CUT undo item is enough.
Этот коммит содержится в:
родитель
50213eee81
Коммит
3b3a6b12a7
@ -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);
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user