From 8bd63d79f8efb51bace7228392f2afe3c99fb229 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 9 Dec 2016 18:38:47 +0100 Subject: vis-lua: expose input key event in insert and replace modes --- vis-lua.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'vis-lua.h') diff --git a/vis-lua.h b/vis-lua.h index 71e30fc..4aba4a4 100644 --- a/vis-lua.h +++ b/vis-lua.h @@ -22,6 +22,13 @@ bool vis_lua_paths_get(Vis*, char **lpath, char **cpath); void vis_lua_init(Vis*); void vis_lua_start(Vis*); void vis_lua_quit(Vis*); +#if !CONFIG_LUA +#define vis_lua_mode_insert_input vis_insert_key +#define vis_lua_mode_replace_input vis_replace_key +#else +void vis_lua_mode_insert_input(Vis*, const char *key, size_t len); +void vis_lua_mode_replace_input(Vis*, const char *key, size_t len); +#endif void vis_lua_file_open(Vis*, File*); bool vis_lua_file_save_pre(Vis*, File*, const char *path); void vis_lua_file_save_post(Vis*, File*, const char *path); -- cgit v1.2.3