mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 18:36:30 +00:00
refactor: follow style guide
This commit is contained in:
@@ -138,7 +138,7 @@ bool try_end(Error *err)
|
||||
api_set_error(err, kErrorTypeException, "Keyboard interrupt");
|
||||
got_int = false;
|
||||
} else if (msg_list != NULL && *msg_list != NULL) {
|
||||
int should_free;
|
||||
bool should_free;
|
||||
char *msg = get_exception_string(*msg_list,
|
||||
ET_ERROR,
|
||||
NULL,
|
||||
|
@@ -599,7 +599,7 @@ ArrayOf(String) nvim__get_runtime(Array pat, Boolean all, Dict(runtime) *opts, E
|
||||
if (opts->do_source) {
|
||||
for (size_t i = 0; i < res.size; i++) {
|
||||
String name = res.items[i].data.string;
|
||||
(void)do_source(name.data, false, DOSO_NONE, NULL);
|
||||
do_source(name.data, false, DOSO_NONE, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -231,8 +231,8 @@ static Object _call_function(String fn, Array args, dict_T *self, Error *err)
|
||||
TRY_WRAP(err, {
|
||||
// call_func() retval is deceptive, ignore it. Instead we set `msg_list`
|
||||
// (see above) to capture abort-causing non-exception errors.
|
||||
(void)call_func(fn.data, (int)fn.size, &rettv, (int)args.size,
|
||||
vim_args, &funcexe);
|
||||
call_func(fn.data, (int)fn.size, &rettv, (int)args.size,
|
||||
vim_args, &funcexe);
|
||||
});
|
||||
|
||||
if (!ERROR_SET(err)) {
|
||||
|
Reference in New Issue
Block a user