mirror of
git://git.sv.gnu.org/nano.git
synced 2025-01-25 18:52:12 +03:00
tweaks: remove a condition that has become superfluous
After the previous change, a copy command will break a chain of cut commands, so there is no need any more to verify that the line number hasn't changed.
This commit is contained in:
parent
a962bceca6
commit
6c4d0d87f0
@ -380,11 +380,11 @@ void do_cut_text_void(void)
|
||||
|
||||
/* Only add a new undo item when the current item is not a CUT or when
|
||||
* the current cut is not contiguous with the previous cutting. */
|
||||
if (openfile->last_action != CUT ||
|
||||
openfile->current_undo->mark_begin_lineno != openfile->current->lineno ||
|
||||
!keep_cutbuffer)
|
||||
if (openfile->last_action != CUT || !keep_cutbuffer)
|
||||
add_undo(CUT);
|
||||
|
||||
do_cut_text(FALSE, openfile->mark != NULL, FALSE, FALSE);
|
||||
|
||||
update_undo(CUT);
|
||||
#else
|
||||
if (is_cuttable(FALSE))
|
||||
|
Loading…
Reference in New Issue
Block a user