Skip to content

Commit

Permalink
Merge pull request #2602 from blink1073/revert-open-parens
Browse files Browse the repository at this point in the history
Revert auto open parens on completion
  • Loading branch information
ccordoba12 committed Aug 11, 2015
2 parents a2914d0 + 051568d commit dc7a388
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions spyderlib/widgets/sourcecode/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,6 @@ def show_list(self, completion_list, automatic=True):
completion_list = [c[0] for c in completion_list]
if len(completion_list) == 1 and not automatic:
self.textedit.insert_completion(completion_list[0])
try:
if self.textedit.close_parentheses_enabled:
if types[0] in ['class', 'function', 'method']:
self.textedit.handle_close_parentheses('')
except AttributeError:
pass
return

self.completion_list = completion_list
self.clear()
Expand Down Expand Up @@ -162,14 +155,6 @@ def keyPressEvent(self, event):
if (key in (Qt.Key_Return, Qt.Key_Enter) and self.enter_select) \
or key == Qt.Key_Tab:
self.item_selected()
if self.type_list[self.currentRow()] not in ['class', 'function',
'method']:
return
try:
if self.textedit.close_parentheses_enabled:
self.textedit.handle_close_parentheses('')
except AttributeError:
pass
elif key in (Qt.Key_Return, Qt.Key_Enter,
Qt.Key_Left, Qt.Key_Right) or text in ('.', ':'):
self.hide()
Expand Down

0 comments on commit dc7a388

Please sign in to comment.