* text.c (add_undo): Fix check for multi-line cut check skips adding other new legit events.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4300 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
b08b38680d
commit
80ea9c5de9
|
@ -2,6 +2,7 @@
|
||||||
* files.c (write_file): Do not go on and attempt to write the main file if writing the backup file failed,
|
* files.c (write_file): Do not go on and attempt to write the main file if writing the backup file failed,
|
||||||
related to Savannah bug 24000.
|
related to Savannah bug 24000.
|
||||||
* text.c (do_redo): Fix improperly restoring the text when redoing a line split.
|
* text.c (do_redo): Fix improperly restoring the text when redoing a line split.
|
||||||
|
* text.c (add_undo): Fix check for multi-line cut check skips adding other new legit events.
|
||||||
|
|
||||||
2008-07-23 Chris Allegretta <chrisa@asty.org>
|
2008-07-23 Chris Allegretta <chrisa@asty.org>
|
||||||
* text.c: Reset openfile-> to OTHER after an undo or redo so we don't mistakenly
|
* text.c: Reset openfile-> to OTHER after an undo or redo so we don't mistakenly
|
||||||
|
|
|
@ -806,7 +806,8 @@ void add_undo(undo_type current_action)
|
||||||
/* Ugh, if we were called while cutting not-to-end, non-marked and on the same lineno,
|
/* Ugh, if we were called while cutting not-to-end, non-marked and on the same lineno,
|
||||||
we need to abort here */
|
we need to abort here */
|
||||||
u = fs->current_undo;
|
u = fs->current_undo;
|
||||||
if (u && u->type == CUT && !u->mark_set && u->lineno == fs->current->lineno)
|
if (current_action == CUT && u && u->type == CUT
|
||||||
|
&& !u->mark_set && u->lineno == fs->current->lineno)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* Blow away the old undo stack if we are starting from the middle */
|
/* Blow away the old undo stack if we are starting from the middle */
|
||||||
|
|
Loading…
Reference in New Issue