tag.viewidx should take a screen index

This makes tag.viewidx take a screen index rather than a screen object,
complying with its doc string. This fixes #963.

Signed-off-by: Felix Bier <flx.bier@googlemail.com>
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Felix Bier 2012-07-01 14:57:25 +02:00 committed by Uli Schlachter
parent bfedd3c136
commit fa36bd0a59
1 changed files with 1 additions and 1 deletions

View File

@ -345,7 +345,7 @@ end
-- @param i The relative index to see.
-- @param screen Optional screen number.
function tag.viewidx(i, screen)
local screen = screen and screen.index or capi.mouse.screen
local screen = screen or capi.mouse.screen
local tags = capi.screen[screen]:tags()
local showntags = {}
for k, t in ipairs(tags) do