Skip to content

Commit

Permalink
even simpler
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Dec 2, 2023
1 parent 94d66a0 commit 2fbe9f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/textual/_compositor.py
Original file line number Diff line number Diff line change
Expand Up @@ -883,8 +883,8 @@ def cuts(self) -> list[list[int]]:
extend = list.extend

for region, clip in self.visible_widgets.values():
if region := intersection(region, clip):
x, y, region_width, region_height = region
x, y, region_width, region_height = intersection(region, clip)
if region_width * region_height:
region_cuts = (x, x + region_width)
for cut in cuts[y : y + region_height]:
extend(cut, region_cuts)
Expand Down

0 comments on commit 2fbe9f2

Please sign in to comment.