code: def _go_to_line(editor, line):
      
      b = editor.application.current_buffer
      b.cursor_position = b.document.translate_row_col_to_index(max(0, int(line) - 1), 0)
docs: Move cursor to this line in the current buffer.