allow commands to reply to gpt; /undo tells it with discarded the changes

This commit is contained in:
Paul Gauthier 2023-05-10 18:08:33 -07:00
parent fcacc3c139
commit bce64f1986
2 changed files with 9 additions and 4 deletions

View file

@ -183,8 +183,9 @@ class Coder:
inp = get_input(self.history_file, self.abs_fnames, self.commands)
if inp.startswith("/"):
self.commands.run(inp)
return
inp = self.commands.run(inp)
if not inp:
return
self.num_control_c = 0