diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-02-13 21:33:28 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-02-13 21:33:28 +0800 |
commit | 03348e5b9db3f057057a70581ef71180c3cb6527 (patch) | |
tree | e7a169e48a0a2a06e4cdd0ee0470aeaebbb6ecca /src/nvim/eval | |
parent | 6f5fae08a302bce6de453425a6b1c1d851112914 (diff) | |
download | rneovim-03348e5b9db3f057057a70581ef71180c3cb6527.tar.gz rneovim-03348e5b9db3f057057a70581ef71180c3cb6527.tar.bz2 rneovim-03348e5b9db3f057057a70581ef71180c3cb6527.zip |
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)
https://github.com/vim/vim/commit/0a7984af5601323fae7b3398f05a48087db7b767
In Nvim Test_checktime_fast() is also flaky. Add a delay to avoid that.
Diffstat (limited to 'src/nvim/eval')
-rw-r--r-- | src/nvim/eval/funcs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/eval/funcs.c b/src/nvim/eval/funcs.c index 7772d9ffc2..c6baa105b0 100644 --- a/src/nvim/eval/funcs.c +++ b/src/nvim/eval/funcs.c @@ -4539,6 +4539,7 @@ static void f_has(typval_T *argvars, typval_T *rettv, FunPtr fptr) "mouse", "multi_byte", "multi_lang", + "nanotime", "num64", "packages", "path_extra", |