From 8e532562e77304a7051621c2a89e268394c21d87 Mon Sep 17 00:00:00 2001 From: Brent Yorgey Date: Thu, 10 Dec 2015 21:08:38 -0600 Subject: [PATCH] X.P.Shell: fix shadowing warning --- XMonad/Prompt/Shell.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XMonad/Prompt/Shell.hs b/XMonad/Prompt/Shell.hs index 6e9715d7..7b0eced3 100644 --- a/XMonad/Prompt/Shell.hs +++ b/XMonad/Prompt/Shell.hs @@ -110,7 +110,7 @@ getShellCompl cmds p s | s == "" || last s == ' ' = return [] | x `startsWith` s && not (y `startsWith` s) = LT | y `startsWith` s && not (x `startsWith` s) = GT | otherwise = x `compare` y - startsWith s ps = isPrefixOf (map toLower ps) (map toLower s) + startsWith str ps = isPrefixOf (map toLower ps) (map toLower str) commandCompletionFunction :: [String] -> Predicate -> String -> [String] commandCompletionFunction cmds p str | '/' `elem` str = []