diff options
Diffstat (limited to 'XMonad/Util')
-rw-r--r-- | XMonad/Util/Dmenu.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/XMonad/Util/Dmenu.hs b/XMonad/Util/Dmenu.hs index 2af55a7..79e4774 100644 --- a/XMonad/Util/Dmenu.hs +++ b/XMonad/Util/Dmenu.hs @@ -55,7 +55,7 @@ menu menuCmd opts = menuArgs menuCmd [] opts -- | Like 'menu' but also takes a list of command line arguments. menuArgs :: String -> [String] -> [String] -> X String -menuArgs menuCmd args opts = runProcessWithInput menuCmd args (unlines opts) +menuArgs menuCmd args opts = fmap (filter (/='\n')) $ runProcessWithInput menuCmd args (unlines opts) -- | Like 'dmenuMap' but also takes the command to run. menuMap :: String -> M.Map String a -> X (Maybe a) |