summaryrefslogtreecommitdiffstats
path: root/src/fileio.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-05-24 16:46:01 +0200
committerBram Moolenaar <Bram@vim.org>2019-05-24 16:46:01 +0200
commit8239c62067c8d40720560496b25a82662126f2a2 (patch)
treefdea52ee222440a10e2ee7c3e938d50d557f3f81 /src/fileio.c
parent701ff0a3e53d253d7300c385e582659bbff7860d (diff)
patch 8.1.1379: filechanged test hangsv8.1.1379
Problem: Filechanged test hangs. Solution: Do not check 'autoread'.
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/fileio.c b/src/fileio.c
index b6a37f522a..57c5f47fc6 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -6774,9 +6774,8 @@ buf_check_timestamp(
// FileChangedShell autocmd)
if (stat_res < 0)
{
- // When 'autoread' is set we'll check the file again to see if it
- // re-appears.
- buf->b_mtime = (buf->b_p_ar >= 0 ? buf->b_p_ar : p_ar);
+ // Check the file again later to see if it re-appears.
+ buf->b_mtime = -1;
buf->b_orig_size = 0;
buf->b_orig_mode = 0;
}