From 4e6fad14700bdb4cf473d2fcd175a71600cd6000 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 27 Apr 2016 09:50:37 +0200 Subject: vis-lua: fix vis.win to always return currently focused window --- vis-lua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vis-lua.c') diff --git a/vis-lua.c b/vis-lua.c index 3a68fd9..d9598bb 100644 --- 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; } -- cgit v1.2.3