Skip to content

Commit

Permalink
Fix GHC warning: -Wtabs
Browse files Browse the repository at this point in the history
Related: xmonad#537
  • Loading branch information
slotThe committed May 20, 2021
1 parent 518e96b commit 7ad38d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions XMonad/Actions/DynamicWorkspaces.hs
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ renameWorkspace conf = workspacePrompt conf renameWorkspaceByName

renameWorkspaceByName :: String -> X ()
renameWorkspaceByName w = do old <- gets (currentTag . windowset)
windows $ \s -> let sett wk = wk { tag = w }
setscr scr = scr { workspace = sett $ workspace scr }
sets q = q { current = setscr $ current q }
windows $ \s -> let sett wk = wk { tag = w }
setscr scr = scr { workspace = sett $ workspace scr }
sets q = q { current = setscr $ current q }
in sets $ removeWorkspace' w s
updateIndexMap old w
updateIndexMap old w
where updateIndexMap oldIM newIM = do
wmap <- XS.gets workspaceIndexMap
XS.modify $ \s -> s {workspaceIndexMap = Map.map (\t -> if t == oldIM then newIM else t) wmap}
Expand Down

0 comments on commit 7ad38d4

Please sign in to comment.