diff src/fileio.c @ 16754:8b92f3fea477 v8.1.1379

patch 8.1.1379: filechanged test hangs commit https://github.com/vim/vim/commit/8239c62067c8d40720560496b25a82662126f2a2 Author: Bram Moolenaar <Bram@vim.org> Date: Fri May 24 16:46:01 2019 +0200 patch 8.1.1379: filechanged test hangs Problem: Filechanged test hangs. Solution: Do not check 'autoread'.
author Bram Moolenaar <Bram@vim.org>
date Fri, 24 May 2019 17:00:05 +0200
parents e2d8d83e6721
children ef00b6bc186b
line wrap: on
line diff
--- 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;
 	}