

def enter_history(self, cli):
    '\n        Display the history.\n        '
    cli.vi_state.input_mode = InputMode.NAVIGATION

    def done(result):
        if (result is not None):
            cli.buffers[DEFAULT_BUFFER].document = result
        cli.vi_state.input_mode = InputMode.INSERT
    cli.run_sub_application(create_history_application(self, self.buffers[DEFAULT_BUFFER].document), done)

dataset/ETHPy150Open jonathanslenders/ptpython/ptpython/python_input.py PythonInput.enter_history/VarMisuse@74/107 `cli`->`self`