diff --git a/yazi-plugin/src/elements/clear.rs b/yazi-plugin/src/elements/clear.rs index dfd0e2f4..0c6f4c7d 100644 --- a/yazi-plugin/src/elements/clear.rs +++ b/yazi-plugin/src/elements/clear.rs @@ -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); } }