aboutsummaryrefslogtreecommitdiffstats
path: root/Commands.hs
diff options
context:
space:
mode:
authorDevin Mullins <me@twifkak.com>2007-10-07 20:59:15 +0200
committerDevin Mullins <me@twifkak.com>2007-10-07 20:59:15 +0200
commitd9f831e606e447043239ae4d60e931405132ba37 (patch)
tree0f2c9680d65629c8dcbe80e9125519e30d9405f6 /Commands.hs
parent6f391057b024585fb4d9489c3a412a59f4bab275 (diff)
downloadXMonadContrib-d9f831e606e447043239ae4d60e931405132ba37.tar.gz
XMonadContrib-d9f831e606e447043239ae4d60e931405132ba37.tar.xz
XMonadContrib-d9f831e606e447043239ae4d60e931405132ba37.zip
Maybe? What Maybe? (rollback earlier dmenu change)
darcs-hash:20071007185915-78224-5dc94fbbbc960a853654321317e2b8ba54d8be2a.gz
Diffstat (limited to 'Commands.hs')
-rw-r--r--Commands.hs4
1 files changed, 1 insertions, 3 deletions
diff --git a/Commands.hs b/Commands.hs
index dcab544..ccb8c55 100644
--- a/Commands.hs
+++ b/Commands.hs
@@ -102,9 +102,7 @@ runCommand :: [(String, X ())] -> X ()
runCommand cl = do
let m = commandMap cl
choice <- dmenu (M.keys m)
- case choice of
- Just selection -> fromMaybe (return ()) (M.lookup selection m)
- Nothing -> return ()
+ fromMaybe (return ()) (M.lookup choice m)
runCommand' :: String -> X ()
runCommand' c = do