Skip to content

Commit

Permalink
X.P.MPD: Fix historyCompletionP for contrib > 0.18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
slotThe committed Apr 3, 2024
1 parent 70a26fd commit 8a1197c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions XMonad/Prompt/MPD.hs
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ addAndPlayAny :: RunMPD -> XPConfig -> [Metadata] -> X ()
addAndPlayAny runMPD xp metas = do
#if MIN_VERSION_xmonad_contrib(0,16,9)
hist <- historyCompletionP (showXPrompt (MPDPrompt "Search: ") ==)
#else if MIN_VERSION_xmonad_contrib(0,18,0,9)
hist <- historyCompletionP xp (showXPrompt (MPDPrompt "Search: ") ==)
#else
let hist = historyCompletionP (showXPrompt (MPDPrompt "Search: ") ==)
#endif
Expand Down

0 comments on commit 8a1197c

Please sign in to comment.