aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval
diff options
context:
space:
mode:
authorDundar Göc <gocdundar@gmail.com>2022-03-09 21:00:39 +0100
committerDundar Göc <gocdundar@gmail.com>2022-03-10 09:14:12 +0100
commitd0cb8744d84822209edd0ac242f2400c784e6dc5 (patch)
treeabc1456d534b020d7525b320a4764cb4f8aca4e5 /src/nvim/eval
parent9e9322b222566c0f92bb6df034d9b316317c81d5 (diff)
downloadrneovim-d0cb8744d84822209edd0ac242f2400c784e6dc5.tar.gz
rneovim-d0cb8744d84822209edd0ac242f2400c784e6dc5.tar.bz2
rneovim-d0cb8744d84822209edd0ac242f2400c784e6dc5.zip
refactor(uncrustify): disable uncrustify for misformatted code sections
Uncrustify version 0.74 has a bug that deindents and misformats the entire fileio.c.
Diffstat (limited to 'src/nvim/eval')
-rw-r--r--src/nvim/eval/funcs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/eval/funcs.c b/src/nvim/eval/funcs.c
index d81a408663..85c49c20e7 100644
--- a/src/nvim/eval/funcs.c
+++ b/src/nvim/eval/funcs.c
@@ -7066,10 +7066,12 @@ static void init_srand(uint32_t *const x)
if (dev_urandom_state != OK) {
// Reading /dev/urandom doesn't work, fall back to time().
#endif
+ // uncrustify:off
*x = time(NULL);
#ifndef MSWIN
}
#endif
+ // uncrustify:on
}
static inline uint32_t splitmix32(uint32_t *const x)