'Remove chars backward from the cursor to the beginning of the line.
This acts like readline\'s unix-line-discard.'

@cmdutils.register(instance='readline-bridge', hide=True, modes=[typ.KeyMode.command, typ.KeyMode.prompt])
def rl_unix_line_discard(self):

    widget = self._widget()
    if (widget is None):
        return
    widget.home(True)
    self._deleted[widget] = widget.selectedText()
    widget.del_()
