This commit is contained in:
Paul Gauthier 2023-04-09 16:11:06 -07:00
parent 610998aafd
commit 14463700d3
2 changed files with 10 additions and 11 deletions

View file

@ -73,10 +73,12 @@ class Coder:
print()
print('='*60)
try:
inp = input('> ')
except EOFError:
return
inp = ''
while not inp.strip():
try:
inp = input('> ')
except EOFError:
return
print()

View file

@ -17,7 +17,7 @@ the original chunk
>>>>>>> UPDATED
Here is an example for how to JUST add lines to a file, without altering any existing lines.
This anchors the location of the new code in the file by including a few lines from the original file.
This anchors the location of the new code in the file by including a few DISTINCTIVE lines from the original file.
foo.py
<<<<<<< ORIGINAL
@ -38,16 +38,13 @@ files_content_prefix_edited = 'I made your suggested changes, here are the updat
files_content_prefix_plain = 'Here are the files:\n\n'
files_content_suffix = '''
YOU CAN ONLY EDIT THESE FILES.
NEVER REPLY WITH WHOLE FILES LIKE THIS!
'''
files_content_suffix = ''
user_suffix = '''
YOU CAN ONLY EDIT THE FILES I PROVIDED ABOVE!
NEVER INCLUDE AN ENTIRE FILE IN YOUR REPLY!
ONLY TELL ME CODE CHANGES BY USING ORIGINAL/UPDATED EDIT COMMANDS!
TO SPECIFY CODE CHANGES YOU MUST USE THE ORIGINAL/UPDATED EDIT COMMANDS!
'''
### EDITOR