From 5f1e119563043e97e5c2c5e7dd48ccd75e17791e Mon Sep 17 00:00:00 2001 From: Josh McKinney Date: Sat, 4 May 2024 23:43:24 -0700 Subject: [PATCH] fix: correct feature flag typo for termwiz (#1088) underline-color was incorrectly spelt as underline_color --- src/backend/termwiz.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/termwiz.rs b/src/backend/termwiz.rs index d78a096f..d6b4f60d 100644 --- a/src/backend/termwiz.rs +++ b/src/backend/termwiz.rs @@ -271,7 +271,7 @@ impl From for Style { style.fg = Some(value.foreground().into()); style.bg = Some(value.background().into()); - #[cfg(feature = "underline_color")] + #[cfg(feature = "underline-color")] { style.underline_color = Some(value.underline_color().into()); } @@ -600,7 +600,7 @@ mod tests { Style::new().fg(Color::Reset).bg(Color::Indexed(31)) ); // underline color - #[cfg(feature = "underline_color")] + #[cfg(feature = "underline-color")] assert_eq!( Style::from( CellAttributes::default()