From 0ca36d117aec3829ef5dfa6b65f9437d65fdc7e2 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 22 Jun 2018 13:27:30 +0200 Subject: workspace: fix variable scope. --- workspace.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'workspace.lua') diff --git a/workspace.lua b/workspace.lua index d6ef061..84dd699 100644 --- a/workspace.lua +++ b/workspace.lua @@ -60,8 +60,9 @@ function Workspace:view(screen, desktop, page_idx) -- the page to display on the target screen page_idx = self.desktops[desktop]:show(screen, page_idx) + local page_new = nil if page_idx then - local page_new = self.desktops[desktop].pages[page_idx] + page_new = self.desktops[desktop].pages[page_idx] end -- the screen on which the new page is currently displayed (if any) -- cgit v1.2.3