summaryrefslogtreecommitdiff
path: root/helix-view/src
diff options
context:
space:
mode:
authorColton Clemmer2023-02-10 17:34:18 +0000
committerGitHub2023-02-10 17:34:18 +0000
commitea3293b4daaa472c363105e3c2c2666a2af82ffc (patch)
tree2a7d311854e64fa54517fe9dd2b42829fb4f80e7 /helix-view/src
parent1840d775c8d5207f08b0fcc3f2325e337369efe8 (diff)
Split modification indicator from file statusline elements (#4731)
Diffstat (limited to 'helix-view/src')
-rw-r--r--helix-view/src/editor.rs10
1 files changed, 9 insertions, 1 deletions
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,