From a982f610cbc00ecaec669b9219cd225d88c670c9 Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Tue, 13 Feb 2024 18:42:58 -0700 Subject: [PATCH] Fixed a bug that had the wrong styling on system errors --- src/ui/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ui/mod.rs b/src/ui/mod.rs index 4d8c939..8a04872 100644 --- a/src/ui/mod.rs +++ b/src/ui/mod.rs @@ -101,10 +101,9 @@ fn draw_error(f: &mut Frame<'_>, app: &mut App<'_>, area: Rect) { app.tick_count % app.ticks_until_scroll == 0, ); - let paragraph = Paragraph::new(Text::from(app.error.to_string()).failure()) + let paragraph = Paragraph::new(Text::from(app.error.to_string().failure())) .block(block) - .wrap(Wrap { trim: true }) - .primary(); + .wrap(Wrap { trim: true }); f.render_widget(paragraph, area); }