diff options
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 9c678168bb..512a8dc511 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -21800,6 +21800,9 @@ void ex_return(exarg_T *eap) } /* It's safer to return also on error. */ else if (!eap->skip) { + // 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. |