mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
fix: Fix spinner backspace calculation
This commit is contained in:
parent
9ef506dc25
commit
95cc362c07
1 changed files with 1 additions and 1 deletions
|
@ -337,7 +337,7 @@ class Spinner:
|
|||
# Backspace cursor to the scanner character
|
||||
pos_in_content = frame.find(self.scan_char) - 1 # exclude '['
|
||||
chars_after_scanner = (self.width - 1) - pos_in_content
|
||||
num_backspaces = max(0, chars_after_scanner + 2) # +']' and extra
|
||||
num_backspaces = max(0, chars_after_scanner + 2) + len(self.text) + 1
|
||||
sys.stdout.write("\b" * num_backspaces)
|
||||
sys.stdout.flush()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue