docs: def reverseCommit(self):
          """
          Reinsert the killed word.
          """
          # Ensure that the cursor position is valid.
          if not self.qteWidget.isSelectionPositionValid(self.selectionPos):
              msg = ('Cannot undo "insert" operation because the selection'
                     'position is invalid. The document is possibly in '
                     'an inconsistent state. Please save and re-open.')
              qteMain.qteLogger.critical(msg)
              return
  
          # Select and delete the inserted text.
          self.qteWidget.setSelection(*self.selectionPos)
          self.baseClass.removeSelectedText()
          line, col = self.selectionPos[0:2]
          self.qteWidget.setCursorPosition(line, col)