mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 12:51:23 +03:00
Preventing a chain of editing actions from continuing after a discard.
This fixes Savannah bug #47104. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5623 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
0dbc867a16
commit
ef2cfa31a7
@ -1,3 +1,7 @@
|
|||||||
|
2016-02-10 Benno Schulenberg <bensberg@justemail.net>
|
||||||
|
* src/text.c (discard_until): Prevent a chain of editing actions from
|
||||||
|
continuing after a discard. This fixes Savannah bug #47104.
|
||||||
|
|
||||||
2016-02-09 Benno Schulenberg <bensberg@justemail.net>
|
2016-02-09 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/files.c (stat_with_alloc, open_buffer, write_file): Check the
|
* src/files.c (stat_with_alloc, open_buffer, write_file): Check the
|
||||||
result of a stat() to avoid referencing unitialized data. Original
|
result of a stat() to avoid referencing unitialized data. Original
|
||||||
|
@ -908,6 +908,9 @@ void discard_until(const undo *thisitem, openfilestruct *thefile)
|
|||||||
free(dropit);
|
free(dropit);
|
||||||
dropit = thefile->undotop;
|
dropit = thefile->undotop;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Prevent a chain of editing actions from continuing. */
|
||||||
|
thefile->last_action = OTHER;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Add a new undo struct to the top of the current pile. */
|
/* Add a new undo struct to the top of the current pile. */
|
||||||
|
Loading…
Reference in New Issue
Block a user