From ea3293b4daaa472c363105e3c2c2666a2af82ffc Mon Sep 17 00:00:00 2001 From: Colton Clemmer Date: Fri, 10 Feb 2023 11:34:18 -0600 Subject: Split modification indicator from file statusline elements (#4731) --- helix-view/src/editor.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'helix-view/src') diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index 042f5bdb..50da3dde 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -414,7 +414,12 @@ impl Default for StatusLineConfig { use StatusLineElement as E; Self { - left: vec![E::Mode, E::Spinner, E::FileName], + left: vec![ + E::Mode, + E::Spinner, + E::FileName, + E::FileModificationIndicator, + ], center: vec![], right: vec![E::Diagnostics, E::Selections, E::Position, E::FileEncoding], separator: String::from("│"), @@ -456,6 +461,9 @@ pub enum StatusLineElement { /// The relative file path, including a dirty flag if it's unsaved FileName, + // The file modification indicator + FileModificationIndicator, + /// The file encoding FileEncoding, -- cgit v1.2.3-70-g09d2