aboutsummaryrefslogtreecommitdiff
path: root/vis-lua.c
diff options
context:
space:
mode:
Diffstat (limited to 'vis-lua.c')
-rw-r--r--vis-lua.c2
1 files changed, 1 insertions, 1 deletions
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;
}