Mercurial > vim
changeset 1913:bddda5d8caa1 v7.2.210
updated for version 7.2-210
author | vimboss |
---|---|
date | Wed, 24 Jun 2009 09:58:32 +0000 |
parents | fcf44bf1218f |
children | 28641f0ed9de |
files | src/fileio.c src/version.c |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/fileio.c +++ b/src/fileio.c @@ -6627,7 +6627,10 @@ buf_check_timestamp(buf, focus) mesg = _("W16: Warning: Mode of file \"%s\" has changed since editing started"); mesg2 = _("See \":help W16\" for more info."); } - /* Else: only timestamp changed, ignored */ + else + /* Only timestamp changed, store it to avoid a warning + * in check_mtime() later. */ + buf->b_mtime_read = buf->b_mtime; } } }