Skip to content

Commit

Permalink
Merge pull request #2409 from blink1073/fix-empty-complete-internal-2408
Browse files Browse the repository at this point in the history
Fix error when trying an empty complete in internal console
  • Loading branch information
ccordoba12 committed May 6, 2015
2 parents b0e89d8 + da2d91e commit aab6e1b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spyderlib/widgets/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,9 @@ def show_code_completion(self, automatic):
text = to_text_string(self.get_current_line_to_cursor())
last_obj = self.get_last_obj()

if not text:
return

if text.startswith('import '):
obj_list = self.get_module_completion(text)
words = text.split(' ')
Expand Down

0 comments on commit aab6e1b

Please sign in to comment.