diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-12-08 18:41:34 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-12-08 18:41:34 +0100 |
commit | 0ff822d2ebf0d130516631734b00179ba8dd8251 (patch) | |
tree | 87511bbe82022b075a96850a7e4a6009a6a67fce /src/eval.c | |
parent | 1b03a193b3394597e4ed86aeea1e1b2c60ae9ad2 (diff) | |
download | vim-git-0ff822d2ebf0d130516631734b00179ba8dd8251.tar.gz |
patch 8.1.2412: crash when evaluating expression with errorv8.1.2412
Problem: Crash when evaluating expression with error. (Dhiraj Mishra)
Solution: Check parsing failed. (closes #5329)
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c index 178f47388..3b563f7db 100644 --- a/src/eval.c +++ b/src/eval.c @@ -2902,7 +2902,7 @@ eval_lambda( rettv->v_type = VAR_UNKNOWN; ret = get_lambda_tv(arg, rettv, evaluate); - if (ret == NOTDONE) + if (ret != OK) return FAIL; else if (**arg != '(') { |