mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 06:15:00 +00:00
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:
parent
bc2c59368b
commit
6e9e384e5c
1 changed files with 2 additions and 2 deletions
4
coder.py
4
coder.py
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue