vis

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

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

commit 6d34f3a3cab5438d687bcc3b824f75ff584d355a
parent 8f280269b2c9cb89ef010adde74c8cc0df6364b2
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Wed, 27 Apr 2016 09:50:37 +0200

vis-lua: fix vis.win to always return currently focused window

Diffstat:
Mvis-lua.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vis-lua.c b/vis-lua.c @@ -520,7 +520,7 @@ static int vis_index(lua_State *L) { if (lua_isstring(L, 2)) { const char *key = lua_tostring(L, 2); if (strcmp(key, "win") == 0) { - obj_ref_new(L, vis->windows, "vis.window"); + obj_ref_new(L, vis->win, "vis.window"); return 1; }