vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 1085040fa70d45b0e6380861b2b6c26cf8e8e0d1
parent f84cddc3f8693d8e9e0d3f3a360b9f0e57016f13
Author: Alexandre Rames <alexandre.rames@uop.re>
Date:   Mon, 27 Feb 2017 21:29:35 -0800

vis-lua: make vis:win assignable
Diffstat:
Mvis-lua.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/vis-lua.c b/vis-lua.c @@ -1169,6 +1169,11 @@ static int vis_newindex(lua_State *L) { vis_count_set(vis, count); return 1; } + + if (strcmp(key, "win") == 0) { + vis_window_focus(obj_ref_check(L, 3, VIS_LUA_TYPE_WINDOW)); + return 0; + } } return newindex_common(L); }