summaryrefslogtreecommitdiff
path: root/src/fileio.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2009-06-24 09:58:32 +0000
committerBram Moolenaar <Bram@vim.org>2009-06-24 09:58:32 +0000
commit85388b56521ea68a4f6f9027c3c6ccf0b305dd03 (patch)
tree1f0f0b6ee61d16f779026386e864ec4454a5181d /src/fileio.c
parentdc40a2b5f53c622e95853597f638394478aa0b83 (diff)
downloadvim-git-85388b56521ea68a4f6f9027c3c6ccf0b305dd03.tar.gz
updated for version 7.2-210v7.2.210
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c
index cb839b8b9..9ce41d420 100644
--- 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;
}
}
}