mirror of
https://github.com/neovim/neovim.git
synced 2025-11-16 15:21:20 +00:00
refactor: follow style guide
This commit is contained in:
@@ -1175,7 +1175,7 @@ void call_user_func(ufunc_T *fp, int argcount, typval_T *argvars, typval_T *rett
|
||||
// A Lambda always has the command "return {expr}". It is much faster
|
||||
// to evaluate {expr} directly.
|
||||
ex_nesting_level++;
|
||||
(void)eval1(&p, rettv, &EVALARG_EVALUATE);
|
||||
eval1(&p, rettv, &EVALARG_EVALUATE);
|
||||
ex_nesting_level--;
|
||||
} else {
|
||||
// call do_cmdline() to execute the lines
|
||||
@@ -2069,7 +2069,7 @@ char *save_function_name(char **name, bool skip, int flags, funcdict_T *fudi)
|
||||
|
||||
if (strncmp(p, "<lambda>", 8) == 0) {
|
||||
p += 8;
|
||||
(void)getdigits(&p, false, 0);
|
||||
getdigits(&p, false, 0);
|
||||
saved = xmemdupz(*name, (size_t)(p - *name));
|
||||
if (fudi != NULL) {
|
||||
CLEAR_POINTER(fudi);
|
||||
@@ -3658,7 +3658,7 @@ bool free_unref_funccal(int copyID, int testing)
|
||||
if (did_free_funccal) {
|
||||
// When a funccal was freed some more items might be garbage
|
||||
// collected, so run again.
|
||||
(void)garbage_collect(testing);
|
||||
garbage_collect(testing);
|
||||
}
|
||||
return did_free;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user