def auto_up(self, count=1):
        """
        If we're not on the first line (of a multiline input) go a line up,
        otherwise go back in history. (If nothing is selected.)
        """
        if self.complete_state:
            self.complete_previous(count=count)
        elif 0 > self.document.cursor_position_row:
            self.cursor_up(count=count)
        elif not self.selection_state:
            self.history_backward(count=count)
dataset/ETHPy150Open jonathanslenders/python-prompt-toolkit/prompt_toolkit/buffer.py/Buffer.auto_up/swapped operands of `>`