refactor: Simplify "Atuin" visibility check in redact-cast.py

This commit is contained in:
Paul Gauthier 2025-03-13 16:08:52 -07:00 committed by Paul Gauthier (aider)
parent e561130336
commit 03733516cc

View file

@ -46,8 +46,10 @@ def main():
stream.feed(event[2]) stream.feed(event[2])
# Check if "Atuin" is visible on screen # Check if "Atuin" is visible on screen
display_content = "\n".join("".join(line) for line in screen.display) if any(
if "Atuin" in display_content: ("Atuin" in line)
for line in screen.display
):
continue # Skip this event continue # Skip this event
# Write this event directly to the output file # Write this event directly to the output file