aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-08-01 04:35:21 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-08-01 04:35:23 -0400
commitc708567262c14f13cef3e939d23e013e46d71c3c (patch)
treef4b0159dadd130c794cf7fab072cdcc0306ead34
parent7995a5e96420c3cc2e6caff80b94264631f9dbd9 (diff)
downloadrneovim-c708567262c14f13cef3e939d23e013e46d71c3c.tar.gz
rneovim-c708567262c14f13cef3e939d23e013e46d71c3c.tar.bz2
rneovim-c708567262c14f13cef3e939d23e013e46d71c3c.zip
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.
-rw-r--r--src/nvim/fileio.c5
1 files 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 {