aboutsummaryrefslogtreecommitdiff
path: root/vis-lua.c
diff options
context:
space:
mode:
Diffstat (limited to 'vis-lua.c')
-rw-r--r--vis-lua.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/vis-lua.c b/vis-lua.c
index 2186e45..0590f55 100644
--- a/vis-lua.c
+++ b/vis-lua.c
@@ -765,25 +765,6 @@ static int message(lua_State *L) {
}
/***
- * Open a file.
- *
- * Creates a new window and loads the given file.
- *
- * @function open
- * @tparam string filename the file name to load
- * @treturn File the file object representing the new file, or `nil` on failure
- */
-static int open(lua_State *L) {
- Vis *vis = obj_ref_check(L, 1, "vis");
- const char *name = luaL_checkstring(L, 2);
- if (vis_window_new(vis, name))
- obj_ref_new(L, vis->win->file, VIS_LUA_TYPE_FILE);
- else
- lua_pushnil(L);
- return 1;
-}
-
-/***
* Register a Lua function as key action.
* @function action_register
* @tparam string name the name of the action, can be referred to in key bindings as `<name>` pseudo key
@@ -1247,7 +1228,6 @@ static const struct luaL_Reg vis_lua[] = {
{ "command", command },
{ "info", info },
{ "message", message },
- { "open", open },
{ "map", map },
{ "motion", motion },
{ "motion_register", motion_register },