diff --git a/helix-term/src/ui/statusline.rs b/helix-term/src/ui/statusline.rs index cf75750f87d1..13094cb7210d 100644 --- a/helix-term/src/ui/statusline.rs +++ b/helix-term/src/ui/statusline.rs @@ -200,18 +200,17 @@ where let mut c = s.clone(); c.fg = s.bg; c.bg = s.fg; - return c; + c }); - let mode_separator_string = match config.statusline.mode_separator { + let mode_separator = match config.statusline.mode_separator { ModeSeparator::Angled => "", ModeSeparator::Slanted => "", - ModeSeparator::Rounded => "", + ModeSeparator::Round => "", ModeSeparator::Flat => unreachable!(), - } - .to_string(); + }; - write(context, mode_separator_string, mode_separator_style); + write(context, mode_separator.to_string(), mode_separator_style); } }; } diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index 4145bd8a542e..82c92eb0c87b 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -279,7 +279,7 @@ pub struct StatusLineConfig { pub enum ModeSeparator { Flat, Angled, - Rounded, + Round, Slanted, }