This commit is contained in:
Paul Gauthier 2023-08-11 10:49:27 -03:00
parent c38a877d81
commit 9815d14368
2 changed files with 2 additions and 2 deletions

View file

@ -444,7 +444,7 @@ class Commands:
text = v.record_and_transcribe() text = v.record_and_transcribe()
if text: if text:
self.io.add_to_file_history(text) self.io.add_to_input_history(text)
print() print()
self.io.user_input(text, log_only=False) self.io.user_input(text, log_only=False)
print() print()

View file

@ -231,7 +231,7 @@ class InputOutput:
self.user_input(inp) self.user_input(inp)
return inp return inp
def add_to_file_history(self, inp): def add_to_input_history(self, inp):
if not self.input_history_file: if not self.input_history_file:
return return
FileHistory(self.input_history_file).append_string(inp) FileHistory(self.input_history_file).append_string(inp)