From 1a7960810c95bd2a627ff28e6c162a224b857e4c Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 9 May 2025 06:57:32 -0700 Subject: [PATCH] style: Fix E501 line length in spinner comments --- aider/utils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/aider/utils.py b/aider/utils.py index 640a81f58..8721d438e 100644 --- a/aider/utils.py +++ b/aider/utils.py @@ -381,9 +381,11 @@ class Spinner: # Total characters written to the line (frame + text + padding) total_chars_written_on_line = len_line_to_display + len(padding_to_clear) - # num_backspaces will be non-positive if scan_char_abs_pos is beyond total_chars_written_on_line + # num_backspaces will be non-positive if scan_char_abs_pos is beyond + # total_chars_written_on_line (e.g., if the scan char itself was truncated). # (e.g., if the scan char itself was truncated). - # In such cases, (effectively) 0 backspaces are written, and the cursor stays at the end of the line. + # In such cases, (effectively) 0 backspaces are written, + # and the cursor stays at the end of the line. num_backspaces = total_chars_written_on_line - scan_char_abs_pos sys.stdout.write("\b" * num_backspaces) sys.stdout.flush()