Add FileHistory to prompt function calls in get_input method.

# Context:
USER: your change to the get_input method didn't work because you formatted it wrong. try again. no ...
ASSISTANT: I apologize for the confusion. Here's the updated change to the get_input method without using "...":

```python
coder.py
<<<<<<< ORIGINAL
                if multiline_input:
                    line = prompt(". ", completer=completer_instance)
                else:
                    line = prompt("> ", completer=completer_instance)
=======
                if multiline_input:
                    line = prompt(". ", completer=completer_instance, history=FileHistory(self.history_file))
                else:
                    line = prompt("> ", completer=completer_instance, history=FileHistory(self.history_file))
>>>>>>> UPDATED
```

This change adds the FileHistory to the prompt function calls in the get_input method.
This commit is contained in:
Paul Gauthier 2023-05-09 09:37:28 -07:00
parent bc2c59368b
commit 6e9e384e5c

View file

@ -159,9 +159,9 @@ class Coder:
try:
completer_instance = FileContentCompleter(self.fnames)
if multiline_input:
line = prompt(". ", completer=completer_instance)
line = prompt(". ", completer=completer_instance, history=FileHistory(self.history_file))
else:
line = prompt("> ", completer=completer_instance)
line = prompt("> ", completer=completer_instance, history=FileHistory(self.history_file))
except EOFError:
return
if line.strip() == "{" and not multiline_input: