def reverseCommit(self):
        """
        Remove the inserted character(s).
        """

        tc = self.qteWidget.textCursor()

        # Select the area from before the insertion to after the insertion,
        # and remove it.
        tc.setPosition(self.cursorPos1, QtGui.QTextCursor.MoveAnchor)
        tc.setPosition(self.cursorPos2, QtGui.QTextCursor.KeepAnchor)
        tc.removeSelectedText()

        # Add the previously selected text (if there was any). Note that the
        # text will not be 'selected' (ie. highlighted) this time.
        if len(self.selText) > 0:
            tc.setPosition(self.selStart)
            tc.insertHtml(self.selText)