vis

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

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

commit 153eb193b2f5598ddc0e70c52dc0538f96564f25
parent d8f380b33063c8075ff4af4ae71468b9436ec6b9
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Tue, 28 Feb 2017 09:30:13 +0100

Merge branch 'master' of https://github.com/arames/vis

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); }