diff options
author | Kjell Wooding <kjell@cvs.openbsd.org> | 2006-07-08 17:56:11 +0000 |
---|---|---|
committer | Kjell Wooding <kjell@cvs.openbsd.org> | 2006-07-08 17:56:11 +0000 |
commit | 81aeda32b7c0a63492b4b74212ad626a8e1182ab (patch) | |
tree | f70fdb96bccce61c160654b7c5c779ab3f1dabfa /usr.bin/mg/file.c | |
parent | 2272f7dfceb16faa7ca53610182b64068e7b5fe4 (diff) |
Introduce a 'MODIFIED' boundary type for undo records.
This allows undo to clear the modified flag when undo-ing all the way
from a loaded buffer.
Originally whipped up at c2k6 after proddings from beck.
jason@ ok.
Diffstat (limited to 'usr.bin/mg/file.c')
-rw-r--r-- | usr.bin/mg/file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mg/file.c b/usr.bin/mg/file.c index 0713208576c..f96f19b3319 100644 --- a/usr.bin/mg/file.c +++ b/usr.bin/mg/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.59 2006/06/01 09:00:50 kjell Exp $ */ +/* $OpenBSD: file.c,v 1.60 2006/07/08 17:56:10 kjell Exp $ */ /* This file is in the public domain. */ @@ -251,6 +251,7 @@ readin(char *fname) if (startrow) gotoline(FFARG, startrow); + undo_add_modified(); return (status); } |