mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-09-03 04:33:47 -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:
@@ -46,4 +46,4 @@ workspacePrompt :: XPConfig -> (String -> X ()) -> X ()
|
||||
workspacePrompt c job = do ws <- gets (workspaces . windowset)
|
||||
sort <- getSortByIndex
|
||||
let ts = map tag $ sort ws
|
||||
mkXPrompt (Wor "") c (mkComplFunFromList' ts) job
|
||||
mkXPrompt (Wor "") c (mkComplFunFromList' c ts) job
|
||||
|
Reference in New Issue
Block a user