Skip to content

Commit 916b66a

Browse files
committed
simplify
1 parent 635c286 commit 916b66a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/textual/_compositor.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,10 +1040,8 @@ def render_inline(
10401040
self._previous_inline_height is not None
10411041
and len(strips) < self._previous_inline_height
10421042
)
1043-
try:
1044-
return InlineUpdate(strips, clear=clear)
1045-
finally:
1046-
self._previous_inline_height = len(strips)
1043+
self._previous_inline_height = len(strips)
1044+
return InlineUpdate(strips, clear=clear)
10471045

10481046
def render_full_update(self) -> LayoutUpdate:
10491047
"""Render a full update.

0 commit comments

Comments
 (0)