Skip to content

Commit

Permalink
Return [] instead of none if there are no completions
Browse files Browse the repository at this point in the history
  • Loading branch information
nh2 committed May 18, 2014
1 parent 32952b9 commit 0ad2c78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autocomplete.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def get_import_completions(self, view, prefix, locations):

return list(set(import_completions))

return None
return []

def get_module_completions_for(self, qualified_prefix, modules = None):
def module_next_name(mname):
Expand Down Expand Up @@ -1217,7 +1217,7 @@ def get_special_completions(self, view, prefix, locations):

return import_completions

return None
return []

def on_query_completions(self, view, prefix, locations):
if not is_haskell_source(view):
Expand Down

0 comments on commit 0ad2c78

Please sign in to comment.