]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.1.1374: check for file changed triggers too often v8.1.1374
authorBram Moolenaar <Bram@vim.org>
Fri, 24 May 2019 09:45:22 +0000 (11:45 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 24 May 2019 09:45:22 +0000 (11:45 +0200)
Problem:    Check for file changed triggers too often.
Solution:   Don't use "b_p_ar" when it is negative.

src/fileio.c
src/version.c

index 4d9cd05f01937c3553c7ea93df2c08fa7be7e5d4..c9387cecd127f8adc3808d7cfd932fc667756b4f 100644 (file)
@@ -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;
        }
index b3ecd8b20d0dbff03db080d96e476e429afadec4..e8da844e4a89f37e95f75f4991c2acb6c386c9b9 100644 (file)
@@ -767,6 +767,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1374,
 /**/
     1373,
 /**/