# HG changeset patch # User Bram Moolenaar # Date 1558692007 -7200 # Node ID e42e9fa83e60e1a3c31016ce55db82f67fe37b07 # Parent f49a29b2bbddb15c090c744b0673a3891e804f2d patch 8.1.1374: check for file changed triggers too often commit https://github.com/vim/vim/commit/c97582b0296cb6f63f3c2e5a0eb954f5920a8e42 Author: Bram Moolenaar 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. diff --git a/src/fileio.c b/src/fileio.c --- 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; } diff --git a/src/version.c b/src/version.c --- 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,