Prompt.XMonad: use mkComplFunFromList' to get all the completions with an empty command line

This commit is contained in:
Andrea Rossato
2008-02-16 13:39:49 +00:00
parent 4def39f610
commit 62637b0325

View File

@@ -44,8 +44,8 @@ instance XPrompt XMonad where
xmonadPrompt :: XPConfig -> X ()
xmonadPrompt c = do
cmds <- defaultCommands
mkXPrompt XMonad c (mkComplFunFromList (map fst cmds)) runCommand'
mkXPrompt XMonad c (mkComplFunFromList' (map fst cmds)) runCommand'
-- | An xmonad prompt with a custom command list
xmonadPromptC :: [(String, X ())] -> XPConfig -> X ()
xmonadPromptC commands c = mkXPrompt XMonad c (mkComplFunFromList (map fst commands)) runCommand'
xmonadPromptC commands c = mkXPrompt XMonad c (mkComplFunFromList' (map fst commands)) runCommand'