Skip to content

Commit

Permalink
patch 8.1.1374: check for file changed triggers too often
Browse files Browse the repository at this point in the history
Problem:    Check for file changed triggers too often.
Solution:   Don't use "b_p_ar" when it is negative.
  • Loading branch information
brammool committed May 24, 2019
1 parent 0ab190c commit c97582b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/fileio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1374,
/**/
1373,
/**/
Expand Down

0 comments on commit c97582b

Please sign in to comment.