def get_cursor_up_position(self, count=1, preferred_column=None):
        assert count >= 1
        column = self.cursor_position_col if preferred_column is None else preferred_column

        return self.translate_row_col_to_index(
            max(0, self.cursor_position_row - count), column) - self.cursor_position
Stop down everything that was started.
dataset/ETHPy150Open jonathanslenders/python-prompt-toolkit/prompt_toolkit/document.py/Document.get_cursor_up_position--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/tests/components/notify/test_command_line.py/TestCommandLine.tearDown