mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-23 13:54:59 +00:00
cleanups
This commit is contained in:
parent
c4c81341a2
commit
f0d56e3cce
1 changed files with 11 additions and 1 deletions
12
coder.py
12
coder.py
|
@ -182,7 +182,11 @@ MAKE ANY CHANGES BASED OFF THESE FILES!
|
|||
|
||||
print()
|
||||
print('='*60)
|
||||
inp = input('> ')
|
||||
try:
|
||||
inp = input('> ')
|
||||
except EOFError:
|
||||
return
|
||||
|
||||
print()
|
||||
|
||||
#readline.add_history(inp)
|
||||
|
@ -198,6 +202,8 @@ MAKE ANY CHANGES BASED OFF THESE FILES!
|
|||
did_edits = False
|
||||
while True:
|
||||
inp = self.get_input()
|
||||
if inp is None:
|
||||
return
|
||||
|
||||
if did_edits:
|
||||
files_prefix = 'I made your suggested changes, here are the updated files:'
|
||||
|
@ -257,6 +263,10 @@ MAKE ANY CHANGES BASED OFF THESE FILES!
|
|||
continue
|
||||
|
||||
pbar.update(len(text))
|
||||
|
||||
pbar.update(show_progress)
|
||||
pbar.close()
|
||||
|
||||
resp = ''.join(resp)
|
||||
return resp
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue