Permalink
Browse files

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.
  • Loading branch information...
brammool committed May 2, 2014
1 parent bcb9898 commit a7611f60cde29639b655ddb4494b98886c318870
Showing with 3 additions and 0 deletions.
  1. +1 −0 src/fileio.c
  2. +2 −0 src/version.c
View
@@ -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
View
@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
274,
/**/
273,
/**/

0 comments on commit a7611f6

Please sign in to comment.