121 self.editor.insert(')') |
121 self.editor.insert(')') |
122 |
122 |
123 # closing parenthesis |
123 # closing parenthesis |
124 # skip matching closing parenthesis |
124 # skip matching closing parenthesis |
125 elif char in [')', '}', ']']: |
125 elif char in [')', '}', ']']: |
126 if char == self.editor.text(line)[col]: |
126 txt = self.editor.text(line) |
|
127 if col < len(txt) and char == txt[col]: |
127 if self.__skipBrace: |
128 if self.__skipBrace: |
128 self.editor.setSelection(line, col, line, col + 1) |
129 self.editor.setSelection(line, col, line, col + 1) |
129 self.editor.removeSelectedText() |
130 self.editor.removeSelectedText() |
130 |
131 |
131 # space |
132 # space |