diff --git a/src/ui/im.rs b/src/ui/im.rs index 5284b593..ec6125e5 100644 --- a/src/ui/im.rs +++ b/src/ui/im.rs @@ -997,7 +997,7 @@ pub mod widget { let area = render_block(frame, area, self.borders, border_style); let area = Rect { - width: area.width - 1, + width: area.width.saturating_sub(1), ..area };