fix for crash on open paren
@@ -226,7 +226,8 @@ class TextBuffer(app.actions.Actions):
def searchForward(openCh, closeCh):
count = 1
textCol = self.penCol + 1
- for row in range(self.penRow, startRow + maxRow):
+ for row in range(self.penRow,
+ min(len(self.lines), startRow + maxRow)):
if row != self.penRow:
textCol = 0
line = self.lines[row][textCol:]
