mirror of
git://git.sv.gnu.org/nano.git
synced 2025-02-22 08:14:22 +03:00
tweaks: remove two superfluous checks
The single check when creating any CUT undo item is enough.
This commit is contained in:
parent
50213eee81
commit
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user