82 self.editor.insert(')') |
82 self.editor.insert(')') |
83 |
83 |
84 # closing parenthesis |
84 # closing parenthesis |
85 # skip matching closing parenthesis |
85 # skip matching closing parenthesis |
86 elif char in [')', '}', ']']: |
86 elif char in [')', '}', ']']: |
87 if char == self.editor.text(line)[col]: |
87 txt = self.editor.text(line) |
|
88 if col < len(txt) and char == txt[col]: |
88 if self.__skipBrace: |
89 if self.__skipBrace: |
89 self.editor.setSelection(line, col, line, col + 1) |
90 self.editor.setSelection(line, col, line, col + 1) |
90 self.editor.removeSelectedText() |
91 self.editor.removeSelectedText() |
91 |
92 |
92 # space |
93 # space |