From c708567262c14f13cef3e939d23e013e46d71c3c Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Thu, 1 Aug 2019 04:35:21 -0400 Subject: [PATCH] fileio: port hotfix from patch 8.1.1379 Patch 8.1.1379 includes a change to a test, added in Patch 8.1.0815. Patch 8.1.0815 includes runtime doc changes to Blob. Neovim does not support Blobs yet. --- src/nvim/fileio.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index d5b61a802a..a164cf47d5 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -4845,9 +4845,8 @@ buf_check_timestamp( // set b_mtime to stop further warnings (e.g., when executing // FileChangedShell autocmd) if (!file_info_ok) { - // 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; } else {