From 7df9cc930d46d900fc2f9196af4812d33e98c4f4 Mon Sep 17 00:00:00 2001 From: unspeaker Date: Mon, 30 Sep 2024 07:04:05 +0300 Subject: [PATCH] fix border minimum area --- crates/tek_core/src/tui.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/tek_core/src/tui.rs b/crates/tek_core/src/tui.rs index 2690aad4..17c524b6 100644 --- a/crates/tek_core/src/tui.rs +++ b/crates/tek_core/src/tui.rs @@ -443,7 +443,7 @@ impl Widget for Border { } fn render (&self, to: &mut TuiOutput) -> Usually<()> { let area = to.area(); - if area.w() > 2 && area.y() > 2 { + if area.w() > 0 && area.y() > 0 { to.blit(&self.0.nw(), area.x(), area.y(), self.0.style()); to.blit(&self.0.ne(), area.x() + area.w() - 1, area.y(), self.0.style()); to.blit(&self.0.sw(), area.x(), area.y() + area.h() - 1, self.0.style());