(self, cmd, count)
C and D
C and D
C and D
def cmdDeleteUntilEndOfBlock(self, cmd, count):
        """ C and D
        """
        cursor = self._qpart.textCursor()
        for _ in range(count - 1):
            cursor.movePosition(QTextCursor.Down, QTextCursor.KeepAnchor)
        cursor.movePosition(QTextCursor.EndOfBlock, QTextCursor.KeepAnchor)
        _globalClipboard.value = cursor.selectedText()
        cursor.removeSelectedText()
        if cmd == _C:
            self.switchMode(Insert)

        self._saveLastEditSimpleCmd(cmd, count)
def cmdDeleteUntilEndOfBlock ( self , cmd , count ) : cursor = self . _qpart . textCursor ( ) for _ in range ( count - 1 ) : cursor . movePosition ( QTextCursor . Down , QTextCursor . KeepAnchor ) cursor . movePosition ( QTextCursor . EndOfBlock , QTextCursor . KeepAnchor ) _globalClipboard . value = cursor . selectedText ( ) cursor . removeSelectedText ( ) if cmd == _C : self . switchMode ( Insert ) self . _saveLastEditSimpleCmd ( cmd , count )