def removeSoftTab(self): """ Remove a space-based tab """ for i in range(self.settings.tabSize): self.cursor.left() operation = RemoveCharacterOperation(self.cursor, self.textStore) for i in range(self.settings.tabSize): operation.perform()
def performDoOperation(self): """ Perform the action """ textLine = self.textStore.text[self.line] col = self.column self.removedCharacter = textLine[col] operation = RemoveCharacterOperation(self.cursor, self.textStore) operation.perform()
def removeHardTab(self): """ Remove a tab """ self.cursor.left() operation = RemoveCharacterOperation(self.cursor, self.textStore) operation.perform()
def performUndoOperation(self): """ Undo the inserted text """ operation = RemoveCharacterOperation(self.cursor, self.textStore) for character in self.textToInsert: operation.perform()