mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 9.0.1140: cannot call an object method in a compiled function
Problem: Cannot call an object method in a compiled function. Solution: Compile the instructins to invoke an object method.
This commit is contained in:
@@ -1136,7 +1136,7 @@ check_reserved_name(char_u *name, cctx_T *cctx)
|
||||
&& !(STRCMP("this", name) == 0
|
||||
&& cctx != NULL
|
||||
&& cctx->ctx_ufunc != NULL
|
||||
&& (cctx->ctx_ufunc->uf_flags & FC_OBJECT)))
|
||||
&& (cctx->ctx_ufunc->uf_flags & (FC_OBJECT|FC_NEW))))
|
||||
{
|
||||
semsg(_(e_cannot_use_reserved_name_str), name);
|
||||
return FAIL;
|
||||
|
Reference in New Issue
Block a user