code: def go_to_history(self, index):
          
          if index < len(self._working_lines):
              self.working_index = index
              self.cursor_position = len(self.text)
docs: Go to this item in the history.