Fix a screen boundary detection issue

This commit is contained in:
Emmanuel Lepage Vallee 2016-08-01 13:11:34 -04:00
parent 5e377938e8
commit be3305b857
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