def commit(self):
        """
        Insert the specified text in all selected lines, always
        at the same column position.
        """

        # Get the number of lines and columns in the last line.
        last_line, last_col = self.qteWidget.getNumLinesAndColumns()

        # If this is the first ever call to this undo/redo element
        # then backup the current cursor position because
        # it will be required for the redo operation.
        if self.cursorPos is None:
            if qteKilledTextFromRectangle is None:
                return
            self.insertedText = list(qteKilledTextFromRectangle)
            self.cursorPos = self.qteWidget.getCursorPosition()
        else:
            self.qteWidget.setCursorPosition(*self.cursorPos)

        # Insert the killed strings into their respective lines.
        col = self.cursorPos[1]
        for ii, text in enumerate(self.insertedText):
            line = ii + self.cursorPos[0]
            self.baseClass.insertAt(text, line, col)