Commit ef259369 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

Oops! Misplaced a closing parenthesis.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5253 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
...@@ -880,8 +880,8 @@ void add_undo(undo_type current_action) ...@@ -880,8 +880,8 @@ void add_undo(undo_type current_action)
/* When doing contiguous adds or contiguous cuts -- which means: with /* When doing contiguous adds or contiguous cuts -- which means: with
* no cursor movement in between -- don't add a new undo item. */ * no cursor movement in between -- don't add a new undo item. */
if (u && u->mark_begin_lineno == fs->current->lineno && if (u && u->mark_begin_lineno == fs->current->lineno &&
((current_action == ADD && u->type == ADD && u->mark_begin_x == fs->current_x)) || ((current_action == ADD && u->type == ADD && u->mark_begin_x == fs->current_x) ||
(current_action == CUT && u->type == CUT && !u->mark_set && keeping_cutbuffer())) (current_action == CUT && u->type == CUT && !u->mark_set && keeping_cutbuffer())))
return; return;
/* When trying to delete the final newline, don't add an undo for it. */ /* When trying to delete the final newline, don't add an undo for it. */
if (current_action == DEL && openfile->current->next == openfile->filebot && if (current_action == DEL && openfile->current->next == openfile->filebot &&
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment