diff options
author | Don Stewart <dons@cse.unsw.edu.au> | 2007-05-28 09:06:09 +0200 |
---|---|---|
committer | Don Stewart <dons@cse.unsw.edu.au> | 2007-05-28 09:06:09 +0200 |
commit | 4a0e8989b4746df7aa5e4d1a039903c2e654e273 (patch) | |
tree | 4a0dd254141e3e3cc985185a0afbdb664d6e9ed8 | |
parent | fb56db45de334632ca3fd0af9a7c66a4a0ecefbd (diff) | |
download | metatile-4a0e8989b4746df7aa5e4d1a039903c2e654e273.tar metatile-4a0e8989b4746df7aa5e4d1a039903c2e654e273.zip |
ensure !! won't go out of bounds in modifyGap
darcs-hash:20070528070609-9c5c1-2f1c968174a8e53b4f37e62e6fd22a70f7ecf3b0
-rw-r--r-- | Config.hs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |