Skip to content

Commit

Permalink
added sorting to the global's completion. will need to revisit sortin…
Browse files Browse the repository at this point in the history
…g when we start using the dictionaries fully
  • Loading branch information
segfault committed Apr 21, 2006
1 parent b4895e2 commit bedf326
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autoload/rubycomplete.vim
Expand Up @@ -451,6 +451,8 @@ def get_completions(base)
if inclass == nil || found == nil
candidates = eval("self.class.constants")
candidates += get_buffer_classes
candidates.uniq!
candidates.sort!
(candidates|ReservedWords).grep(/^#{Regexp.quote(input)}/)
end
end
Expand Down

0 comments on commit bedf326

Please sign in to comment.