summaryrefslogtreecommitdiffstats
path: root/src/if_lua.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-03-08 19:50:24 +0100
committerBram Moolenaar <Bram@vim.org>2021-03-08 19:50:24 +0100
commit86c3a2162c2e78b4f0b87b47779cc1452990ee1b (patch)
tree81b19a2455734ecc2dcabcee2ae55e313efaa4a7 /src/if_lua.c
parent9355ae41497cbcce58ddd79f9125eb3e9dfe0a43 (diff)
patch 8.2.2578: Lua cannot handle a passed in lambdav8.2.2578
Problem: Lua cannot handle a passed in lambda. Solution: Handle VAR_PARTIAL. (Prabir Shrestha, closes #7937, closes #7936)
Diffstat (limited to 'src/if_lua.c')
-rw-r--r--src/if_lua.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/if_lua.c b/src/if_lua.c
index e20298311d..abcd850b3d 100644
--- a/src/if_lua.c
+++ b/src/if_lua.c
@@ -568,6 +568,11 @@ luaV_pushtypval(lua_State *L, typval_T *tv)
case VAR_FUNC:
luaV_pushfuncref(L, tv->vval.v_string);
break;
+ case VAR_PARTIAL:
+ // TODO: handle partial arguments
+ luaV_pushfuncref(L, partial_name(tv->vval.v_partial));
+ break;
+
case VAR_BLOB:
luaV_pushblob(L, tv->vval.v_blob);
break;