mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 23:48:32 +00:00
vim-patch:8.2.3510: changes are only detected with one second accuracy
Problem: Changes are only detected with one second accuracy.
Solution: Use the nanosecond time if possible. (Leah Neukirchen,
closes vim/vim#8873, closes vim/vim#8875)
0a7984af56
In Nvim Test_checktime_fast() is also flaky. Add a delay to avoid that.
This commit is contained in:
@@ -587,7 +587,9 @@ struct file_buffer {
|
||||
// where invoked
|
||||
|
||||
long b_mtime; // last change time of original file
|
||||
long b_mtime_ns; // nanoseconds of last change time
|
||||
long b_mtime_read; // last change time when reading
|
||||
long b_mtime_read_ns; // nanoseconds of last read time
|
||||
uint64_t b_orig_size; // size of original file in bytes
|
||||
int b_orig_mode; // mode of original file
|
||||
time_t b_last_used; // time when the buffer was last used; used
|
||||
|
Reference in New Issue
Block a user