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:
parent
bfedd3c136
commit
fa36bd0a59
|
@ -345,7 +345,7 @@ end
|
||||||
-- @param i The relative index to see.
|
-- @param i The relative index to see.
|
||||||
-- @param screen Optional screen number.
|
-- @param screen Optional screen number.
|
||||||
function tag.viewidx(i, screen)
|
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 tags = capi.screen[screen]:tags()
|
||||||
local showntags = {}
|
local showntags = {}
|
||||||
for k, t in ipairs(tags) do
|
for k, t in ipairs(tags) do
|
||||||
|
|
Loading…
Reference in New Issue