Skip to content

Commit

Permalink
fix exception on select
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Jan 10, 2025
1 parent 5bedb5a commit 523ca0d
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 @@ -918,9 +918,9 @@ def get_widget_and_offset_at(
meta = style.meta
if "offset" in meta:
offset_x, offset_y = style.meta["offset"]
offset_x2 = offset_x + segment.cell_length
offset_x2 = offset_x + len(segment.text)

if x <= end:
if x <= end and x >= start:
return widget, (
None
if offset_y is None
Expand Down

0 comments on commit 523ca0d

Please sign in to comment.