Browse files

Minor fix

  • Loading branch information...
1 parent 6258adc commit d9179d3a781bde94925d40da74ab4e43d234d1f4 @mvoidex mvoidex committed May 3, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 autocomplete.py
View
2 autocomplete.py
@@ -439,7 +439,7 @@ def run(self, edit, filename = None, module_name = None, decl = None):
if current_file_name in files:
cur_info = files[current_file_name]
- if not module_word:
+ if not module_word or module_word == cur_info.name:
# this module declaration
candidates.extend([m.declarations[ident] for m in modules_dict if symbols.is_this_module(cur_info, m) and ident in m.declarations])
if not candidates:

0 comments on commit d9179d3

Please sign in to comment.