eric6/QScintilla/MiniEditor.py

changeset 8169
139bd30c52c2
parent 8165
61ca9619decb
child 8176
31965986ecd1
child 8218
7c09585bd960
equal deleted inserted replaced
8168:bdb0258faf42 8169:139bd30c52c2
88 """ 88 """
89 if cmd == QsciScintilla.SCI_DELETEBACK: 89 if cmd == QsciScintilla.SCI_DELETEBACK:
90 line, index = self.getCursorPosition() 90 line, index = self.getCursorPosition()
91 text = self.text(line)[index - 1:index + 1] 91 text = self.text(line)[index - 1:index + 1]
92 matchingPairs = ['()', '[]', '{}', '<>', "''", '""'] 92 matchingPairs = ['()', '[]', '{}', '<>', "''", '""']
93 # __IGNORE_WARNING_M613__
93 if text in matchingPairs: 94 if text in matchingPairs:
94 self.delete() 95 self.delete()
95 96
96 super(MiniScintilla, self).editorCommand(cmd) 97 super(MiniScintilla, self).editorCommand(cmd)
97 98

eric ide

mercurial