mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-01 12:41:52 -07:00
Prompt: Use searchPredicate in more cases
Prompts based on `mkComplFunList` and `mkComplFunList'` were not taking into account the `searchPredicate` funtion from `XPConfig`. This was rather confusing. We fix it by passing `XPConfig` to these functions; although this is strictly more than they need, it makes the breaking change very easy to fix and is also more future-proof.
This commit is contained in:
@@ -51,5 +51,5 @@ xmonadPrompt c = do
|
||||
-- | An xmonad prompt with a custom command list
|
||||
xmonadPromptC :: [(String, X ())] -> XPConfig -> X ()
|
||||
xmonadPromptC commands c =
|
||||
mkXPrompt XMonad c (mkComplFunFromList' (map fst commands)) $
|
||||
mkXPrompt XMonad c (mkComplFunFromList' c (map fst commands)) $
|
||||
fromMaybe (return ()) . (`lookup` commands)
|
||||
|
Reference in New Issue
Block a user