4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: When a file that is being edited has its timestamp updated outside
12 of Vim and ":checktime" is used still get a warning when writing
13 the file. (Matt Mueller)
14 Solution: Store the timestamp in b_mtime_read when the timestamp is the only
19 *** ../vim-7.2.209/src/fileio.c 2009-06-16 16:01:34.000000000 +0200
20 --- src/fileio.c 2009-06-20 13:29:41.000000000 +0200
23 mesg = _("W16: Warning: Mode of file \"%s\" has changed since editing started");
24 mesg2 = _("See \":help W16\" for more info.");
26 ! /* Else: only timestamp changed, ignored */
31 mesg = _("W16: Warning: Mode of file \"%s\" has changed since editing started");
32 mesg2 = _("See \":help W16\" for more info.");
35 ! /* Only timestamp changed, store it to avoid a warning
36 ! * in check_mtime() later. */
37 ! buf->b_mtime_read = buf->b_mtime;
41 *** ../vim-7.2.209/src/version.c 2009-06-16 18:29:37.000000000 +0200
42 --- src/version.c 2009-06-24 11:57:08.000000000 +0200
46 { /* Add new patch number below this line */
52 Have you heard about the new Beowulf cluster? It's so fast, it executes
53 an infinite loop in 6 seconds.
55 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
56 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
57 \\\ download, build and distribute -- http://www.A-A-P.org ///
58 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///