0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

updated for version 7.4.274

Problem:    When doing ":update" just before running an external command that
            changes the file, the timestamp may be unchanged and the file
            is not reloaded.
Solution:   Also check the file size.
This commit is contained in:
Bram Moolenaar
2014-05-02 15:46:14 +02:00
parent bcb9898eba
commit a7611f60cd
2 changed files with 3 additions and 0 deletions

View File

@@ -6897,6 +6897,7 @@ buf_check_timestamp(buf, focus)
&& buf->b_mtime != 0
&& ((stat_res = mch_stat((char *)buf->b_ffname, &st)) < 0
|| time_differs((long)st.st_mtime, buf->b_mtime)
|| st.st_size != buf->b_orig_size
#ifdef HAVE_ST_MODE
|| (int)st.st_mode != buf->b_orig_mode
#else