We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ade678 commit 544f497Copy full SHA for 544f497
1 file changed
Lib/pdb.py
@@ -477,11 +477,11 @@ def gen_colors(self, buffer):
477
Span(leading_spaces, leading_spaces + len(leading_text) - 1),
478
"soft_keyword"
479
)
480
+ # Redact the command text with spaces so there will be no duplicated
481
+ # color span generated for it later.
482
redact_length = leading_spaces + len(leading_text)
- else:
- redact_length = 0
483
+ buffer = ' ' * redact_length + buffer[redact_length:]
484
- buffer = ' ' * redact_length + buffer[redact_length:]
485
yield from _pyrepl.utils.gen_colors(buffer)
486
487
0 commit comments