From 233433cc11d10a74ebad4823f69d979c33f360d3 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 11 Aug 2023 08:45:06 -0300 Subject: [PATCH] properly handle ^c in /voice --- aider/commands.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/aider/commands.py b/aider/commands.py index 622d1fbdf..e3f089f4d 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -443,10 +443,11 @@ class Commands: return text = v.record_and_transcribe() - self.io.add_to_file_history(text) - print() - self.io.user_input(text, log_only=False) - print() + if text: + self.io.add_to_file_history(text) + print() + self.io.user_input(text, log_only=False) + print() return text