Skip to content

Commit

Permalink
optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Apr 13, 2023
1 parent 58b8d22 commit 5e50b2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/textual/strip.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,9 +413,10 @@ def render(self, console: Console) -> str:
"""
if self._render_cache is None:
color_system = cast(ColorSystem, console.color_system)
render = Style.render
self._render_cache = "".join(
[
style.render(text, color_system=color_system)
render(style, text, color_system=color_system)
for text, style, _ in self._segments
if style is not None
]
Expand Down

0 comments on commit 5e50b2e

Please sign in to comment.