1
0
forked from aniani/vim

patch 8.1.1379: filechanged test hangs

Problem:    Filechanged test hangs.
Solution:   Do not check 'autoread'.
This commit is contained in:
Bram Moolenaar
2019-05-24 16:46:01 +02:00
parent 701ff0a3e5
commit 8239c62067
3 changed files with 6 additions and 4 deletions

View File

@@ -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;
}