We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 699cc86 commit 950bbccCopy full SHA for 950bbcc
src/textual/widgets/_option_list.py
@@ -853,7 +853,10 @@ def render_line(self, y: int) -> Strip:
853
style = self.get_visual_style("option-list--option")
854
855
strips = self._get_option_render(option, style)
856
- strip = strips[line_offset]
+ try:
857
+ strip = strips[line_offset]
858
+ except IndexError:
859
+ return Strip.blank(self.scrollable_content_region.width)
860
return strip
861
862
def validate_highlighted(self, highlighted: int | None) -> int | None:
0 commit comments