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 3ed6987 commit 78b641dCopy full SHA for 78b641d
Lib/_pyrepl/content.py
@@ -59,14 +59,24 @@ def build_body_fragments(
59
colors: list[ColorSpan] | None,
60
start_index: int,
61
) -> tuple[ContentFragment, ...]:
62
+ if colors is None:
63
+ return tuple(
64
+ ContentFragment(
65
+ styled_char.text,
66
+ styled_char.width,
67
+ StyleRef(),
68
+ )
69
+ for styled_char in iter_display_chars(buffer, colors, start_index)
70
71
+
72
theme = THEME()
73
return tuple(
74
ContentFragment(
75
styled_char.text,
76
styled_char.width,
77
StyleRef.from_tag(styled_char.tag, theme[styled_char.tag])
- if styled_char.tag else
- StyleRef(),
78
+ if styled_char.tag
79
+ else StyleRef(),
80
)
81
for styled_char in iter_display_chars(buffer, colors, start_index)
82
0 commit comments