From 8a1197ccd2a9958d8a3d6f90abfe28f2e070b1eb Mon Sep 17 00:00:00 2001 From: Tony Zorman Date: Wed, 3 Apr 2024 08:56:48 +0200 Subject: [PATCH] X.P.MPD: Fix historyCompletionP for contrib > 0.18.0 Related: https://github.com/xmonad/xmonad-contrib/pull/864 --- XMonad/Prompt/MPD.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/XMonad/Prompt/MPD.hs b/XMonad/Prompt/MPD.hs index b2d5432..838f672 100644 --- a/XMonad/Prompt/MPD.hs +++ b/XMonad/Prompt/MPD.hs @@ -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