def go_to_history(self, index):
        """
        Go to this item in the history.
        """
        if len(self._working_lines) < index:
            self.working_index = index
            self.cursor_position = len(self.text)
dataset/ETHPy150Open jonathanslenders/python-prompt-toolkit/prompt_toolkit/buffer.py/Buffer.go_to_history/swapped operands of `<`