1
0
Fork 0

Make completions case-insensitive

This commit is contained in:
Amjith Ramanujam 2015-01-29 13:32:42 -08:00
parent 3ed89e01e4
commit c08d4a51e5
1 changed files with 2 additions and 1 deletions

View File

@ -123,7 +123,8 @@ class PGCompleter(Completer):
def find_matches(text, collection):
text = last_word(text, include='most_punctuations')
for item in collection:
if item.startswith(text) or item.startswith(text.upper()):
if (item.startswith(text) or item.startswith(text.upper()) or
item.startswith(text.lower())):
yield Completion(item, -len(text))
def get_completions(self, document, complete_event, smart_completion=None):