aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/editor.rs
diff options
context:
space:
mode:
authorSeth Bromberger2022-07-26 06:05:12 +0000
committerGitHub2022-07-26 06:05:12 +0000
commit3dd2196e4f42b23fd30b4e028b96d5b1862603d6 (patch)
tree5214b9f213a224da2f8e0e428d86fb99d8259308 /helix-view/src/editor.rs
parentde8ade896771875482fed0a4da6c9cc62410edf5 (diff)
add position-percentage as a statusline indicator (#3168)
* added position-pct as a statusline indicator * removed unnecessary mutable reference * pct -> percent * percent -> percentage
Diffstat (limited to 'helix-view/src/editor.rs')
-rw-r--r--helix-view/src/editor.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index 5d82e0d4..f99924cf 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -247,6 +247,8 @@ pub enum StatusLineElement {
/// The cursor position
Position,
+ /// The cursor position as a percent of the total file
+ PositionPercentage,
/// A single space
Spacer,
}