This commit is contained in:
sxyazi 2024-04-06 08:51:42 +08:00
parent 16731e6138
commit bf9c997165
No known key found for this signature in database

View file

@ -37,8 +37,8 @@ impl ratatui::widgets::Widget for Clear {
ADAPTOR.image_erase(r).ok();
COLLISION.store(true, Ordering::Relaxed);
for y in area.top()..area.bottom() {
for x in area.left()..area.right() {
for y in r.top()..r.bottom() {
for x in r.left()..r.right() {
buf.get_mut(x, y).set_skip(true);
}
}