projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c57dc5
)
Eliminate duplicate flags in the tab completion of ghci's :set command.
author
Judah Jacobson
<judah.jacobson@gmail.com>
Thu, 16 Oct 2008 01:57:21 +0000
(
01:57
+0000)
committer
Judah Jacobson
<judah.jacobson@gmail.com>
Thu, 16 Oct 2008 01:57:21 +0000
(
01:57
+0000)
compiler/ghci/InteractiveUI.hs
patch
|
blob
|
history
diff --git
a/compiler/ghci/InteractiveUI.hs
b/compiler/ghci/InteractiveUI.hs
index
3b5fde9
..
a2108bb
100644
(file)
--- a/
compiler/ghci/InteractiveUI.hs
+++ b/
compiler/ghci/InteractiveUI.hs
@@
-1739,7
+1739,8
@@
completeHomeModule w = do
completeSetOptions w = do
return (filter (w `isPrefixOf`) options)
- where options = "args":"prog":allFlags
+ where options = "args":"prog":flagList
+ flagList = map head $ group $ sort allFlags
completeFilename w = do
ws <- Readline.filenameCompletionFunction w