changeset 16744:e42e9fa83e60 v8.1.1374

patch 8.1.1374: check for file changed triggers too often commit https://github.com/vim/vim/commit/c97582b0296cb6f63f3c2e5a0eb954f5920a8e42 Author: Bram Moolenaar <Bram@vim.org> Date: Fri May 24 11:45:22 2019 +0200 patch 8.1.1374: check for file changed triggers too often Problem: Check for file changed triggers too often. Solution: Don't use "b_p_ar" when it is negative.
author Bram Moolenaar <Bram@vim.org>
date Fri, 24 May 2019 12:00:07 +0200
parents f49a29b2bbdd
children 4ac8cb8c8146
files src/fileio.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -6776,7 +6776,7 @@ buf_check_timestamp(
 	{
 	    // When 'autoread' is set we'll check the file again to see if it
 	    // re-appears.
-	    buf->b_mtime = buf->b_p_ar;
+	    buf->b_mtime = (buf->b_p_ar >= 0 ? buf->b_p_ar : p_ar);
 	    buf->b_orig_size = 0;
 	    buf->b_orig_mode = 0;
 	}
--- a/src/version.c
+++ b/src/version.c
@@ -768,6 +768,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1374,
+/**/
     1373,
 /**/
     1372,