mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
refactor: Simplify "Atuin" visibility check in redact-cast.py
This commit is contained in:
parent
e561130336
commit
03733516cc
1 changed files with 4 additions and 2 deletions
|
@ -46,8 +46,10 @@ def main():
|
|||
stream.feed(event[2])
|
||||
|
||||
# Check if "Atuin" is visible on screen
|
||||
display_content = "\n".join("".join(line) for line in screen.display)
|
||||
if "Atuin" in display_content:
|
||||
if any(
|
||||
("Atuin" in line)
|
||||
for line in screen.display
|
||||
):
|
||||
continue # Skip this event
|
||||
|
||||
# Write this event directly to the output file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue