mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.1.1374: check for file changed triggers too often
Problem: Check for file changed triggers too often.
Solution: Don't use "b_p_ar" when it is negative.
c97582b029
This commit is contained in:
parent
28946c285b
commit
7995a5e964
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user