ninja-ide/ninja-ide — Issue #147: exception when autocomplete disabled
Author: luciotorre
Created: 2012-01-05 16:40:17+00:00
State: open

when typing "(" on the editor window and having autocomplete for parentheses disabled i get on stdout:

Traceback (most recent call last):
File "/home/lucio/src/ninja-ide/ninja_ide/gui/editor/editor.py", line 561, in keyPressEvent
self.postKeyPress.get(event.key(), lambda x: False)(event)
File "/home/lucio/src/ninja-ide/ninja_ide/gui/editor/editor.py", line 547, in __complete_braces
self.textCursor().insertText(settings.BRACES[unicode(event.text())])
KeyError: u'('

I tried enabling autocomplete of parentheses and the exception went away.