=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mg/file.c,v retrieving revision 1.86 retrieving revision 1.87 diff -u -r1.86 -r1.87 --- src/usr.bin/mg/file.c 2013/02/10 15:38:18 1.86 +++ src/usr.bin/mg/file.c 2013/03/25 11:38:22 1.87 @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.86 2013/02/10 15:38:18 lum Exp $ */ +/* $OpenBSD: file.c,v 1.87 2013/03/25 11:38:22 florian Exp $ */ /* This file is in the public domain. */ @@ -553,6 +553,8 @@ (void)fupdstat(curbp); curbp->b_flag &= ~(BFBAK | BFCHG); upmodes(curbp); + undo_add_boundary(FFRAND, 1); + undo_add_modified(); } return (s); } @@ -623,6 +625,8 @@ (void)fupdstat(bp); bp->b_flag &= ~(BFCHG | BFBAK); upmodes(bp); + undo_add_boundary(FFRAND, 1); + undo_add_modified(); } return (s); }