diff options
author | Leah Neukirchen <leah@vuxu.org> | 2021-10-14 21:27:55 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-10-14 21:27:55 +0100 |
commit | 0a7984af5601323fae7b3398f05a48087db7b767 (patch) | |
tree | 22efd296a4db294d3e9288c5d2085c1a5679ae82 /src/structs.h | |
parent | 340dd0fbe462a15a9678cfba02085b4adcc45f02 (diff) | |
download | vim-git-0a7984af5601323fae7b3398f05a48087db7b767.tar.gz |
patch 8.2.3510: changes are only detected with one second accuracyv8.2.3510
Problem: Changes are only detected with one second accuracy.
Solution: Use the nanosecond time if possible. (Leah Neukirchen,
closes #8873, closes #8875)
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h index 0715686f7..7dac95b30 100644 --- a/src/structs.h +++ b/src/structs.h @@ -2724,7 +2724,9 @@ struct file_buffer wininfo_T *b_wininfo; // list of last used info for each window 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 off_T b_orig_size; // size of original file in bytes int b_orig_mode; // mode of original file #ifdef FEAT_VIMINFO |