From bf9c997165338a64f3b224b114ec8c841261c75e Mon Sep 17 00:00:00 2001 From: sxyazi Date: Sat, 6 Apr 2024 08:51:42 +0800 Subject: [PATCH] .. --- yazi-plugin/src/elements/clear.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }