Skip to content

Commit 233433c

Browse files
committed
properly handle ^c in /voice
1 parent 26857e8 commit 233433c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

aider/commands.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -443,10 +443,11 @@ def cmd_voice(self, args):
443443
return
444444

445445
text = v.record_and_transcribe()
446-
self.io.add_to_file_history(text)
447-
print()
448-
self.io.user_input(text, log_only=False)
449-
print()
446+
if text:
447+
self.io.add_to_file_history(text)
448+
print()
449+
self.io.user_input(text, log_only=False)
450+
print()
450451

451452
return text
452453

0 commit comments

Comments
 (0)