@register(u'accept-line')
def accept_line(event):
 b = event.current_buffer
 b.accept_action.validate_and_handle(event.cli, b)

@ register ( u'accept-line' ) def accept_line ( event ) : b = event . current_buffer b . accept_action . validate_and_handle ( event . cli , b )
accept the line regardless of where the cursor is .