mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-20 16:42:51 -06:00
fast word completion for functions names in the shell
This commit is contained in:
@@ -525,7 +525,7 @@ wordCompletion gfenv (left,right) = do
|
||||
-> Haskeline.completeFilename (left,right)
|
||||
CmplIdent _ pref
|
||||
-> case pgfenv gfenv of
|
||||
(_,Just pgf,_) -> ret (length pref) [Haskeline.simpleCompletion name | name <- functions pgf, isPrefixOf pref name]
|
||||
(_,Just pgf,_) -> ret (length pref) [Haskeline.simpleCompletion name | name <- functionsByPrefix pgf pref]
|
||||
_ -> ret (length pref) []
|
||||
_ -> ret 0 []
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user