diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-05-09 03:02:12 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-05-09 23:18:38 +0200 |
commit | 32b0470b03b3892a4ed6c4bfec0d4a5527d996b1 (patch) | |
tree | e9e1837347ba34e5a1012da84d3f30d88a2b8935 /src/nvim/eval.c | |
parent | c9f3174075a7168f10fabf806891ef59ee3b13d4 (diff) | |
download | rneovim-32b0470b03b3892a4ed6c4bfec0d4a5527d996b1.tar.gz rneovim-32b0470b03b3892a4ed6c4bfec0d4a5527d996b1.tar.bz2 rneovim-32b0470b03b3892a4ed6c4bfec0d4a5527d996b1.zip |
API: better way to capture abort-causing non-exception errors
This condition is not perfectly reliable:
(did_emsg && force_abort && !current_exception)
The more proper way to check for abort-causing non-exception errors is
to set up `msg_list` using the "pattern" given by do_cmdline().
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 3c408a4381..45a1776c86 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -6242,8 +6242,8 @@ bool set_ref_in_func(char_u *name, ufunc_T *fp_in, int copyID) /// new_argcount = argv_func(current_argcount, argv, called_func_argcount) /// /// @return FAIL if function cannot be called, else OK (even if an error -/// occurred while executing the function! Use `msg_first_ignored_err` -/// to get the error) +/// occurred while executing the function! Set `msg_list` to capture +/// the error, see do_cmdline()). int call_func( const char_u *funcname, // name of the function |