mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-30 19:51:51 -07:00
X.P.Shell: fix shadowing warning
This commit is contained in:
@@ -110,7 +110,7 @@ getShellCompl cmds p s | s == "" || last s == ' ' = return []
|
|||||||
| x `startsWith` s && not (y `startsWith` s) = LT
|
| x `startsWith` s && not (y `startsWith` s) = LT
|
||||||
| y `startsWith` s && not (x `startsWith` s) = GT
|
| y `startsWith` s && not (x `startsWith` s) = GT
|
||||||
| otherwise = x `compare` y
|
| 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 :: [String] -> Predicate -> String -> [String]
|
||||||
commandCompletionFunction cmds p str | '/' `elem` str = []
|
commandCompletionFunction cmds p str | '/' `elem` str = []
|
||||||
|
Reference in New Issue
Block a user