]> granicus.if.org Git - vim/commitdiff
updated for version 7.2-179 v7.2.179
authorBram Moolenaar <Bram@vim.org>
Sat, 16 May 2009 19:16:33 +0000 (19:16 +0000)
committerBram Moolenaar <Bram@vim.org>
Sat, 16 May 2009 19:16:33 +0000 (19:16 +0000)
src/ex_cmds2.c
src/version.c

index bfa322d870d19719e10b499c893400fb51ed88e5..1108ab9614139cb172cced6b7046290e3128e5d7 100644 (file)
@@ -28,7 +28,8 @@ typedef struct scriptitem_S
 {
     char_u     *sn_name;
 # ifdef UNIX
-    int                sn_dev;
+    int                sn_dev_valid;
+    dev_t      sn_dev;
     ino_t      sn_ino;
 # endif
 # ifdef FEAT_PROFILE
@@ -3049,7 +3050,7 @@ do_source(fname, check_other, is_vimrc)
                    /* Compare dev/ino when possible, it catches symbolic
                     * links.  Also compare file names, the inode may change
                     * when the file was edited. */
-                   ((stat_ok && si->sn_dev != -1)
+                   ((stat_ok && si->sn_dev_valid)
                        && (si->sn_dev == st.st_dev
                            && si->sn_ino == st.st_ino)) ||
 # endif
@@ -3076,11 +3077,12 @@ do_source(fname, check_other, is_vimrc)
 # ifdef UNIX
        if (stat_ok)
        {
+           si->sn_dev_valid = TRUE;
            si->sn_dev = st.st_dev;
            si->sn_ino = st.st_ino;
        }
        else
-           si->sn_dev = -1;
+           si->sn_dev_valid = FALSE;
 # endif
 
        /* Allocate the local script variables to use for this script. */
index 1a7c803e17f2bf960d0cc5edc95d62e1396e9fe8..388065ed8342fcc7335329c5cc61d28ae9c1453e 100644 (file)
@@ -676,6 +676,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    179,
 /**/
     178,
 /**/