mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
refactor: Simplify terminal feed logic in redact-cast.py
This commit is contained in:
parent
ba17924174
commit
318cc57ffe
1 changed files with 2 additions and 4 deletions
|
@ -50,11 +50,9 @@ def main():
|
|||
|
||||
# Fast check: if any letters of "Atuin" are in the output
|
||||
if any(char in output_text for char in atuin_chars):
|
||||
# Only now feed to terminal emulator
|
||||
stream.feed(output_text)
|
||||
check_terminal = True
|
||||
elif check_terminal:
|
||||
# If we're already checking the terminal, continue feeding
|
||||
|
||||
if check_terminal:
|
||||
stream.feed(output_text)
|
||||
|
||||
# If we need to check the terminal, do so
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue