diff options
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | vis-lua.c | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -577,6 +577,7 @@ simple short lived (configuration) tasks. At this time there exists no API stability guarantees. - `vis` + - `VERSION` version information string in `git describe` format, same as reported by `vis -v` - `MODE_NORMAL`, `MODE_OPERATOR_PENDING`, `MODE_INSERT`, `MODE_REPLACE`, `MODE_VISUAL`, `MODE_VISUAL_LINE` mode constants - `mode` current mode (one of the above constants) - `lexers` LPeg lexer support module @@ -1198,6 +1198,9 @@ void vis_lua_init(Vis *vis) { luaL_newmetatable(L, "vis"); luaL_setfuncs(L, vis_lua, 0); + lua_pushstring(L, VERSION); + lua_setfield(L, -2, "VERSION"); + static const struct { enum VisMode id; const char *name; |
