Radish alpha
r
Radicle terminal user interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
lib: Fix potential panic in imUI column widget
Erik Kundt committed 1 year ago
commit fc05a124cb8c8c18e7e0852f5610e6aa4dd0ef65
parent ed9bd1a0c30dff8ca7a1e83da72b6b0ed46f6c07
1 file changed +1 -1
modified 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
            };