diff options
| -rw-r--r-- | vis-lua.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1368,6 +1368,10 @@ static int pipe_func(lua_State *L) { * Whether a macro is being recorded. * @tfield bool recording */ +/*** + * Currently unconsumed keys in the input queue. + * @tfield string input_queue + */ static int vis_index(lua_State *L) { Vis *vis = obj_ref_check(L, 1, "vis"); @@ -1386,6 +1390,11 @@ static int vis_index(lua_State *L) { return 1; } + if (strcmp(key, "input_queue") == 0) { + lua_pushstring(L, buffer_content0(&vis->input_queue)); + return 1; + } + if (strcmp(key, "recording") == 0) { lua_pushboolean(L, vis_macro_recording(vis)); return 1; |
