summaryrefslogtreecommitdiffstats
path: root/Config.hs
diff options
context:
space:
mode:
authorDon Stewart <dons@cse.unsw.edu.au>2007-05-28 09:06:09 +0200
committerDon Stewart <dons@cse.unsw.edu.au>2007-05-28 09:06:09 +0200
commit4a0e8989b4746df7aa5e4d1a039903c2e654e273 (patch)
tree4a0dd254141e3e3cc985185a0afbdb664d6e9ed8 /Config.hs
parentfb56db45de334632ca3fd0af9a7c66a4a0ecefbd (diff)
downloadmetatile-4a0e8989b4746df7aa5e4d1a039903c2e654e273.tar
metatile-4a0e8989b4746df7aa5e4d1a039903c2e654e273.zip
ensure !! won't go out of bounds in modifyGap
darcs-hash:20070528070609-9c5c1-2f1c968174a8e53b4f37e62e6fd22a70f7ecf3b0
Diffstat (limited to 'Config.hs')
-rw-r--r--Config.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Config.hs b/Config.hs
index ca142cb..f9a66d2 100644
--- a/Config.hs
+++ b/Config.hs
@@ -120,7 +120,7 @@ keys = M.fromList $
, ((modMask , xK_period), sendMessage (IncMasterN (-1))) -- @@ Deincrement the number of windows in the master area
-- toggle the status bar gap
- , ((modMask , xK_b ), modifyGap (\i n -> let x = defaultGaps !! i in if n == x then (0,0,0,0) else x)) -- @@ Toggle the status bar gap
+ , ((modMask , xK_b ), modifyGap (\i n -> let x = (defaultGaps ++ repeat (0,0,0,0)) !! i in if n == x then (0,0,0,0) else x)) -- @@ Toggle the status bar gap
-- quit, or restart
, ((modMask .|. shiftMask, xK_q ), io (exitWith ExitSuccess)) -- @@ Quit xmonad