mirror of git://git.sv.gnu.org/nano.git
Backport r5379 from trunk.
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_4_branch@5419 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
12dfc7fe98
commit
00b9555a85
|
@ -1,3 +1,8 @@
|
||||||
|
2015-10-29 Benno Schulenberg <bensberg@justemail.net>
|
||||||
|
* src/text.c (add_undo): Only skip adding an undo when the current
|
||||||
|
action equals the last action. This condition is needed for when
|
||||||
|
typing text is broken by an undo+redo. Fixes Savannah bug #46323.
|
||||||
|
|
||||||
2015-09-05 Benno Schulenberg <bensberg@justemail.net>
|
2015-09-05 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/winio.c (display_string, edit_draw): Force a redraw of a line
|
* src/winio.c (display_string, edit_draw): Force a redraw of a line
|
||||||
only when it contains a multicolumn character, to spare all regular
|
only when it contains a multicolumn character, to spare all regular
|
||||||
|
|
|
@ -867,7 +867,7 @@ void add_undo(undo_type 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 && action == fs->last_action &&
|
||||||
((action == ADD && u->type == ADD && u->mark_begin_x == fs->current_x) ||
|
((action == ADD && u->type == ADD && u->mark_begin_x == fs->current_x) ||
|
||||||
(action == CUT && u->type == CUT && !u->mark_set && keeping_cutbuffer())))
|
(action == CUT && u->type == CUT && !u->mark_set && keeping_cutbuffer())))
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue