Skip to content

Commit afd3c4d

Browse files
committed
fix: crash when rendering items that overflow the current screen
1 parent e01f6b7 commit afd3c4d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/screen/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,9 @@ impl Widget for &Screen {
384384
}
385385

386386
line_index += height;
387+
if line_index >= area.height {
388+
break;
389+
}
387390
}
388391
}
389392
}

0 commit comments

Comments
 (0)