Skip to content

Commit 5f8cbcd

Browse files
committed
restore console.render
1 parent 82b4944 commit 5f8cbcd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/textual/widgets/_text_area.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,8 @@ def render_line(self, y: int) -> Strip:
13091309
target_width = base_width - self.gutter_width
13101310

13111311
# Crop the line to show only the visible part (some may be scrolled out of view)
1312-
text_strip = Strip(line.render(self.app.console), cell_length=line.cell_len)
1312+
console = self.app.console
1313+
text_strip = Strip(console.render(line), cell_length=line.cell_len)
13131314
if not self.soft_wrap:
13141315
text_strip = text_strip.crop(scroll_x, scroll_x + virtual_width)
13151316

0 commit comments

Comments
 (0)