code: def accept_line(event):
      " Accept the line regardless of where the cursor is. "
      b = event.current_buffer
      b.accept_action.validate_and_handle(event.cli, bf accept_line(event):
      " Accept the line regardless of where the cursor is. "
      b = event.current_buffer
      b.accept_action.validate_and_handle(event.cli, b)
docs: Accept the line regardless of where the cursor is.