aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-03-11 15:07:49 +0100
committerGitHub <noreply@github.com>2022-03-11 15:07:49 +0100
commitc2ab922f0a6ac2f11ab3d706ca5bc097fdac4dd7 (patch)
tree58a30205195dc158140f6cc4501349cb819ecfe0 /src/nvim/eval
parentc3a6ff6aa3be259255976b1178dd07ac876ff124 (diff)
parent7e3bdc75e44b9139d8afaea4381b53ae78b15746 (diff)
downloadrneovim-c2ab922f0a6ac2f11ab3d706ca5bc097fdac4dd7.tar.gz
rneovim-c2ab922f0a6ac2f11ab3d706ca5bc097fdac4dd7.tar.bz2
rneovim-c2ab922f0a6ac2f11ab3d706ca5bc097fdac4dd7.zip
Merge pull request #17663 from dundargoc/refactor/uncrustify
refactor: apply uncrustify
Diffstat (limited to 'src/nvim/eval')
-rw-r--r--src/nvim/eval/funcs.c2
-rw-r--r--src/nvim/eval/typval.c8
2 files changed, 6 insertions, 4 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)
diff --git a/src/nvim/eval/typval.c b/src/nvim/eval/typval.c
index d492c67877..2a432ecb47 100644
--- a/src/nvim/eval/typval.c
+++ b/src/nvim/eval/typval.c
@@ -1171,10 +1171,10 @@ void callback_put(Callback *cb, typval_T *tv)
func_ref(cb->data.funcref);
break;
case kCallbackLua:
- // TODO(tjdevries): Unified Callback.
- // At this point this isn't possible, but it'd be nice to put
- // these handled more neatly in one place.
- // So instead, we just do the default and put nil
+ // TODO(tjdevries): Unified Callback.
+ // At this point this isn't possible, but it'd be nice to put
+ // these handled more neatly in one place.
+ // So instead, we just do the default and put nil
default:
tv->v_type = VAR_SPECIAL;
tv->vval.v_special = kSpecialVarNull;