warnings: rename shadowing variables

This commit is contained in:
Ben Boeckel
2016-07-16 13:22:12 -04:00
parent ddcc9e0209
commit d414c76da8
3 changed files with 17 additions and 17 deletions

View File

@@ -154,13 +154,13 @@ dynamicProjects ps c =
-- | Log hook for tracking workspace changes.
dynamicProjectsLogHook :: X ()
dynamicProjectsLogHook = do
name <- gets (W.tag . W.workspace . W.current . windowset)
state <- XS.get
name <- gets (W.tag . W.workspace . W.current . windowset)
xstate <- XS.get
unless (Just name == previousProject state) $ do
XS.put (state {previousProject = Just name})
unless (Just name == previousProject xstate) $ do
XS.put (xstate {previousProject = Just name})
activateProject . fromMaybe (defProject name) $
Map.lookup name (projects state)
Map.lookup name (projects xstate)
--------------------------------------------------------------------------------
-- | Start-up hook for recording configured projects.