Mercurial > vim
comparison src/eval.c @ 20433:5950284a517f v8.2.0771
patch 8.2.0771: Vim9: cannot call a compiled closure from not compiled code
Commit: https://github.com/vim/vim/commit/6f5b6dfb16228c0ce1e4379b7bafed02eaddbab2
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 16 21:20:12 2020 +0200
patch 8.2.0771: Vim9: cannot call a compiled closure from not compiled code
Problem: Vim9: cannot call a compiled closure from not compiled code.
Solution: Pass funcexe to call_user_func().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 16 May 2020 21:30:10 +0200 |
parents | 918b9a05cf35 |
children | 9fd5414e294c |
comparison
equal
deleted
inserted
replaced
20432:05b26264315a | 20433:5950284a517f |
---|---|
244 if (partial == NULL) | 244 if (partial == NULL) |
245 return FAIL; | 245 return FAIL; |
246 | 246 |
247 if (partial->pt_func != NULL && partial->pt_func->uf_dfunc_idx >= 0) | 247 if (partial->pt_func != NULL && partial->pt_func->uf_dfunc_idx >= 0) |
248 { | 248 { |
249 if (call_def_function(partial->pt_func, argc, argv, rettv) == FAIL) | 249 if (call_def_function(partial->pt_func, argc, argv, |
250 partial, rettv) == FAIL) | |
250 return FAIL; | 251 return FAIL; |
251 } | 252 } |
252 else | 253 else |
253 { | 254 { |
254 s = partial_name(partial); | 255 s = partial_name(partial); |