diff --git a/lib/awful/tag.lua.in b/lib/awful/tag.lua.in index 3c9b8e1e..8ec1bbd6 100644 --- a/lib/awful/tag.lua.in +++ b/lib/awful/tag.lua.in @@ -216,7 +216,7 @@ end -- @param i The relative index to see. -- @param screen Optional screen number. function viewidx(i, screen) - local screen = scree or capi.mouse.screen + local screen = screen and screen.index or capi.mouse.screen local tags = capi.screen[screen]:tags() local showntags = {} for k, t in ipairs(tags) do