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
This commit is contained in:
Marco Hinz
2014-05-02 17:08:28 +02:00
committed by Justin M. Keyes
parent ddafdacb00
commit e42a3cc4e6
2 changed files with 2 additions and 0 deletions

View File

@@ -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

View File

@@ -202,6 +202,7 @@ static char *(features[]) = {
static int included_patches[] = {
// Add new patch number below this line
274,
//273,
272,
//271,