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:
@@ -6897,6 +6897,7 @@ buf_check_timestamp(buf, focus)
|
|||||||
&& buf->b_mtime != 0
|
&& buf->b_mtime != 0
|
||||||
&& ((stat_res = mch_stat((char *)buf->b_ffname, &st)) < 0
|
&& ((stat_res = mch_stat((char *)buf->b_ffname, &st)) < 0
|
||||||
|| time_differs((long)st.st_mtime, buf->b_mtime)
|
|| time_differs((long)st.st_mtime, buf->b_mtime)
|
||||||
|
|| st.st_size != buf->b_orig_size
|
||||||
#ifdef HAVE_ST_MODE
|
#ifdef HAVE_ST_MODE
|
||||||
|| (int)st.st_mode != buf->b_orig_mode
|
|| (int)st.st_mode != buf->b_orig_mode
|
||||||
#else
|
#else
|
||||||
|
@@ -734,6 +734,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
274,
|
||||||
/**/
|
/**/
|
||||||
273,
|
273,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user