diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-10-09 21:55:35 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-10-09 21:55:35 -0400 |
commit | 0394cb23e93858de2cd77b5cecf008d55e5a7717 (patch) | |
tree | b89e092949ac181611aecd8a21d6d5975f2b207c /src | |
parent | c2e7f39528a5270fbc44469296158e98ba5838f9 (diff) | |
download | rneovim-0394cb23e93858de2cd77b5cecf008d55e5a7717.tar.gz rneovim-0394cb23e93858de2cd77b5cecf008d55e5a7717.tar.bz2 rneovim-0394cb23e93858de2cd77b5cecf008d55e5a7717.zip |
lint
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/eval.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 512a8dc511..515dd0e69f 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -21797,18 +21797,15 @@ void ex_return(exarg_T *eap) } else { tv_clear(&rettv); } - } - /* It's safer to return also on error. */ - else if (!eap->skip) { + } else if (!eap->skip) { // It's safer to return also on error. // In return statement, cause_abort should be force_abort. update_force_abort(); - /* - * Return unless the expression evaluation has been cancelled due to an - * aborting error, an interrupt, or an exception. - */ - if (!aborting()) - returning = do_return(eap, FALSE, TRUE, NULL); + // Return unless the expression evaluation has been cancelled due to an + // aborting error, an interrupt, or an exception. + if (!aborting()) { + returning = do_return(eap, false, true, NULL); + } } /* When skipping or the return gets pending, advance to the next command |