mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 06:15:00 +00:00
WIP: Refactor Coder class to avoid readline dependency and fix input prompt.
This commit is contained in:
parent
6ba8b7d41e
commit
b2e9eb05f0
1 changed files with 11 additions and 10 deletions
5
coder.py
5
coder.py
|
@ -34,7 +34,8 @@ class Coder:
|
|||
def __init__(self, main_model, files, pretty, history_file=".coder.history"):
|
||||
self.history_file = history_file
|
||||
try:
|
||||
readline.read_history_file(self.history_file)
|
||||
#readline.read_history_file(self.history_file)
|
||||
pass
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
|
||||
|
@ -135,7 +136,7 @@ class Coder:
|
|||
else:
|
||||
print()
|
||||
|
||||
while True:
|
||||
while True:
|
||||
try:
|
||||
if multiline_input:
|
||||
line = prompt(". ")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue