Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert auto open parens on completion #2602

Merged
merged 1 commit into from
Aug 11, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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