summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2009-05-16 19:16:33 +0000
committerBram Moolenaar <Bram@vim.org>2009-05-16 19:16:33 +0000
commitbf0c4526bf4bac6f7193cacf2ad1c8802f84be18 (patch)
tree2a32489548e64e3b345c5a2fb5d6e556f6123444 /src
parente1fbddcd624b3850ceaefe6bb896d25ed030b0d9 (diff)
downloadvim-git-bf0c4526bf4bac6f7193cacf2ad1c8802f84be18.tar.gz
updated for version 7.2-179v7.2.179
Diffstat (limited to 'src')
-rw-r--r--src/ex_cmds2.c8
-rw-r--r--src/version.c2
2 files changed, 7 insertions, 3 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index bfa322d87..1108ab961 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -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. */
diff --git a/src/version.c b/src/version.c
index 1a7c803e1..388065ed8 100644
--- a/src/version.c
+++ b/src/version.c
@@ -677,6 +677,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 179,
+/**/
178,
/**/
177,