'Remove chars from the cursor to the end of the line.
This acts like readline\'s kill-line.'

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

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