From e42a3cc4e628de812bc4fdd8b687ec1356286f22 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Fri, 2 May 2014 17:08:28 +0200 Subject: vim-patch: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. https://code.google.com/p/vim/source/detail?r=1ee3fc5b40ae94c2a7fc5a62bca38d4f730f9bb2 --- src/fileio.c | 1 + src/version.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/fileio.c b/src/fileio.c index e9aff651c5..8fc06ecf9f 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -5118,6 +5118,7 @@ buf_check_timestamp ( && 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 diff --git a/src/version.c b/src/version.c index 761ddfa96b..d4df349741 100644 --- a/src/version.c +++ b/src/version.c @@ -202,6 +202,7 @@ static char *(features[]) = { static int included_patches[] = { // Add new patch number below this line + 274, //273, 272, //271, -- cgit