aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval/typval.c
diff options
context:
space:
mode:
authorTJ DeVries <devries.timothyj@gmail.com>2020-07-11 17:40:31 -0400
committerGitHub <noreply@github.com>2020-07-11 17:40:31 -0400
commit1ca67a73c0ba680eb8328e68bea31f839855dd29 (patch)
tree6f770f564307cb8a31f6ead427114267fcba3953 /src/nvim/eval/typval.c
parenta695da7d3fac19624d458e3f2980b4c0e55f50a4 (diff)
parent6360cf7ce87407bd8a519b9a17f45b2148291904 (diff)
downloadrneovim-1ca67a73c0ba680eb8328e68bea31f839855dd29.tar.gz
rneovim-1ca67a73c0ba680eb8328e68bea31f839855dd29.tar.bz2
rneovim-1ca67a73c0ba680eb8328e68bea31f839855dd29.zip
Merge pull request #12507 from tjdevries/tjdevries/viml_lua_callbacks
[RFC] Allow passing lua functions and closures into vim functions.
Diffstat (limited to 'src/nvim/eval/typval.c')
-rw-r--r--src/nvim/eval/typval.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/eval/typval.c b/src/nvim/eval/typval.c
index 0daaf6c878..89ca2db59b 100644
--- a/src/nvim/eval/typval.c
+++ b/src/nvim/eval/typval.c
@@ -16,6 +16,7 @@
#include "nvim/eval/typval_encode.h"
#include "nvim/eval.h"
#include "nvim/eval/userfunc.h"
+#include "nvim/lua/executor.h"
#include "nvim/types.h"
#include "nvim/assert.h"
#include "nvim/memory.h"
@@ -301,6 +302,7 @@ void tv_list_free_list(list_T *const l)
}
list_log(l, NULL, NULL, "freelist");
+ nlua_free_typval_list(l);
xfree(l);
}
@@ -1374,6 +1376,7 @@ void tv_dict_free_dict(dict_T *const d)
d->dv_used_next->dv_used_prev = d->dv_used_prev;
}
+ nlua_free_typval_dict(d);
xfree(d);
}