0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.0049

This commit is contained in:
Bram Moolenaar
2005-02-07 22:01:03 +00:00
parent f97ca8f066
commit 7c62692d43
28 changed files with 796 additions and 190 deletions

View File

@@ -2339,11 +2339,12 @@ do_source(fname, check_other, is_vimrc)
if (SCRIPT_NAME(current_SID) != NULL
&& (
# ifdef UNIX
/* compare dev/ino when possible, it catches symbolic
* links */
(stat_ok && SCRIPT_DEV(current_SID) != -1)
? (SCRIPT_DEV(current_SID) == st.st_dev
&& SCRIPT_INO(current_SID) == st.st_ino) :
/* Compare dev/ino when possible, it catches symbolic
* links. Also compare file names, the inode may change
* when the file was edited. */
((stat_ok && SCRIPT_DEV(current_SID) != -1)
&& (SCRIPT_DEV(current_SID) == st.st_dev
&& SCRIPT_INO(current_SID) == st.st_ino)) ||
# endif
fnamecmp(SCRIPT_NAME(current_SID), fname_exp) == 0))
break;