Fix a screen boundary detection issue

This commit is contained in:
Emmanuel Lepage Vallee 2016-08-01 13:11:34 -04:00
parent 7ed13d9119
commit 7109d49044
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ end
local function scr_exists(s)
local t = type(s)
return (t == "number" and s > 0 and s < capi.screen.count())
return (t == "number" and s > 0 and s <= capi.screen.count())
or t == "screen" or (t == "table" and s.workarea)
end