aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c
index 56c74fbfd6..d5b61a802a 100644
--- a/src/nvim/fileio.c
+++ b/src/nvim/fileio.c
@@ -4847,7 +4847,7 @@ buf_check_timestamp(
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;
+ buf->b_mtime = (buf->b_p_ar >= 0 ? buf->b_p_ar : p_ar);
buf->b_orig_size = 0;
buf->b_orig_mode = 0;
} else {