fix regression from eb1a6a1b6

This commit is contained in:
Emmanuel Lepage Vallee 2015-05-26 01:00:07 -04:00
parent 7672d3f26a
commit c9c0516ed5
2 changed files with 6 additions and 4 deletions

View File

@ -82,7 +82,9 @@ function module.highlight()
end
function module.hide()
if w then
w.visible = false
end
end
return module

View File

@ -89,7 +89,7 @@ end
local function select_screen(scr_index,move,old_screen)
if scr_index ~= old_screen then
local c = last_clients[scr_index]
if not pcall(c) then
if pcall(c) then
last_clients[scr_index] = nil
c = nil
end