code: def end_of_line(event):
      " Move to the end of the line. "
      buff = event.current_buffer
      buff.cursor_position += buff.document.get_end_of_line_position(f end_of_line(event):
      " Move to the end of the line. "
      buff = event.current_buffer
      buff.cursor_position += buff.document.get_end_of_line_position()
docs: Move to the end of the line.