nano/src
Benno Schulenberg dc3618a127 text: set and reset the Modified state correctly when undoing/redoing
Unset the "Modified" marker only at the point where the file was last
saved -- if there is such a point, because it can be missing when the
undo stack was discarded.

This fixes https://savannah.gnu.org/bugs/?52689.
Reported-by: Liu Hao <lh_mouse@126.com>

Original-idea-by: Brand Huntsman <alpha@qzx.com>
2017-12-19 19:22:52 +01:00
..
browser.c copyright: update some years, and standardize on the dashed format 2017-11-12 10:46:20 +01:00
chars.c tweaks: frob a couple of comments 2017-11-12 20:08:28 +01:00
color.c painting: evade an ncurses bug by adding the A_PROTECT attribute 2017-11-13 19:38:28 +01:00
cut.c tweaks: rename, rewrap, and reshuffle some stuff, and frob some comments 2017-11-21 21:17:08 +01:00
files.c text: set and reset the Modified state correctly when undoing/redoing 2017-12-19 19:22:52 +01:00
global.c tweaks: remove some unneeded parentheses, and shorten two function calls 2017-12-17 20:32:17 +01:00
help.c tweaks: transform the token DISABLE_COLOR to ENABLE_COLOR 2017-11-01 19:45:50 +01:00
history.c history: make nano's state directory accessible for the user only 2017-11-26 19:54:47 +01:00
Makefile.am organization: move all history-related stuff to its own file 2017-09-17 12:46:36 +02:00
move.c copyright: update some years, and standardize on the dashed format 2017-11-12 10:46:20 +01:00
nano.c display: ensure that cursor is visible when compiled with --with-slang 2017-12-17 16:34:02 +01:00
nano.h text: set and reset the Modified state correctly when undoing/redoing 2017-12-19 19:22:52 +01:00
prompt.c tweaks: reshuffle a bit of code and elide an unneeded variable 2017-11-11 21:10:49 +01:00
proto.h tweaks: rewrap some lines and some comments, and trim two others 2017-12-10 20:03:51 +01:00
rcfile.c options: rename 'justifytrim' to 'trimblanks', because it has morphed 2017-12-06 20:38:13 +01:00
search.c tweaks: rename, rewrap, and reshuffle some stuff, and frob some comments 2017-11-21 21:17:08 +01:00
text.c text: set and reset the Modified state correctly when undoing/redoing 2017-12-19 19:22:52 +01:00
utils.c tweaks: elide the 'mark_set' boolean -- the 'mark' pointer is enough 2017-11-21 21:14:33 +01:00
winio.c tweaks: remove some unneeded parentheses, and shorten two function calls 2017-12-17 20:32:17 +01:00