git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Merge pull request #791 from vkorablin/master

Fix `:s` appearing twice in auto-completion.

commitc7209c8ec80bab2ec1b700e6ca11b7c6aeafe48d authorPhil Freeman <paf31@cantab.net> dateSun 28 Dec 2014, 15:17 (12 years ago) parent609c8414d69cf2
1 file changed+1−1
psci/Main.hs+1−1
psci/Main.hs+1−1
@@ -225,7 +225,7 @@ completion = completeWordWithPrev Nothing " \t\n\r" findCompletions
225225 return $ sortBy sorter completions
226226
227227 getCompletion :: CompletionContext -> String -> StateT PSCiState IO [Either String Completion]
228− getCompletion (Command s) _ = return $ (map Left) $ filter (isPrefixOf s) C.commands
228+ getCompletion (Command s) _ = return $ (map Left) $ nub $ filter (isPrefixOf s) C.commands
229229 getCompletion FilePath f = (map Right) <$> listFiles f
230230 getCompletion Module _ = (map Left) <$> getModuleNames
231231 getCompletion Identifier _ = (map Left) <$> getIdentNames