def kill_cursor(self, cursor):
        text = cursor.selectedText()
        if text:
            cursor.removeSelectedText()
            self.kill(text)
Kills the text selected by the give cursor.
dataset/ETHPy150Open ipython/ipython-py3k/IPython/frontend/qt/console/kill_ring.py/QtKillRing.kill_cursor