]> git.pld-linux.org Git - packages/vim.git/blob - 7.2.210
- new
[packages/vim.git] / 7.2.210
1 To: vim-dev@vim.org
2 Subject: Patch 7.2.210
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 7.2.210
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
15             thing that changed.
16 Files:      src/fileio.c
17
18
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
21 ***************
22 *** 6627,6633 ****
23                         mesg = _("W16: Warning: Mode of file \"%s\" has changed since editing started");
24                         mesg2 = _("See \":help W16\" for more info.");
25                     }
26 !                   /* Else: only timestamp changed, ignored */
27                 }
28             }
29         }
30 --- 6627,6636 ----
31                         mesg = _("W16: Warning: Mode of file \"%s\" has changed since editing started");
32                         mesg2 = _("See \":help W16\" for more info.");
33                     }
34 !                   else
35 !                       /* Only timestamp changed, store it to avoid a warning
36 !                        * in check_mtime() later. */
37 !                       buf->b_mtime_read = buf->b_mtime;
38                 }
39             }
40         }
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
43 ***************
44 *** 678,679 ****
45 --- 678,681 ----
46   {   /* Add new patch number below this line */
47 + /**/
48 +     210,
49   /**/
50
51 -- 
52 Have you heard about the new Beowulf cluster? It's so fast, it executes
53 an infinite loop in 6 seconds.
54
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    ///
This page took 0.027277 seconds and 3 git commands to generate.