Skip to content

Commit 558c0ba

Browse files
committed
tweak
1 parent 3c490cd commit 558c0ba

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/textual/_line_cache.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def from_renderable(
2323
height: int,
2424
) -> "LineCache":
2525
options = console.options.update_dimensions(width, height)
26-
lines = console.render_lines(renderable, options, new_lines=False)
26+
lines = console.render_lines(renderable, options, new_lines=True)
2727
return cls(lines)
2828

2929
@property
@@ -36,7 +36,6 @@ def __rich_console__(
3636
new_line = Segment.line()
3737
for line in self.lines:
3838
yield from line
39-
yield new_line
4039

4140
def render(self, x: int, y: int) -> Iterable[Segment]:
4241
move_to = Control.move_to
@@ -45,5 +44,5 @@ def render(self, x: int, y: int) -> Iterable[Segment]:
4544
if dirty:
4645
yield move_to(x, offset_y).segment
4746
yield from line
48-
yield new_line
47+
4948
self._dirty[:] = [False] * len(self.lines)

0 commit comments

Comments
 (0)