Skip to content

Commit 75dfc19

Browse files
Fix infinite recursion if no symbol matcher has been installed
1 parent cfbf0ab commit 75dfc19

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pyqode/python/modes/autoindent.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ def _parens_count_for_block(self, col, block):
121121
return len(open_p), len(closed_p), open_p, closed_p
122122

123123
def _between_paren(self, tc, col):
124+
try:
125+
self.editor.modes.get('SymbolMatcherMode')
126+
except KeyError:
127+
return False
124128
block = tc.block()
125129
nb_open = nb_closed = 0
126130
while block.isValid() and block.text().strip():

0 commit comments

Comments
 (0)