This commit is contained in:
able 2023-09-15 21:35:27 -05:00
parent 7c5794e110
commit 6a8c46a6c4
2 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
fn status_bar() { fn status_bar() {
let sb = `${file_name}:${y}:${x} | ${file_type} | ${line_count}`; let sb = `${file_name}:${y}:${x} | ${file_type} | ${line_count} Lines`;
return sb; return sb;
} }

View file

@ -97,7 +97,7 @@ impl Editor<'static> {
pub fn update_scope(&mut self) { pub fn update_scope(&mut self) {
self.config self.config
.scope .scope
.set_or_push("line_count", self.document.len()); .set_or_push("line_count", self.document.len() as u64);
self.config self.config
.scope .scope
@ -394,8 +394,8 @@ impl Editor<'static> {
.clone() .clone()
.unwrap_or("buffer".to_string()), .unwrap_or("buffer".to_string()),
); );
{}
// status = self.config.call("status_bar"); status = self.config.call("status_bar");
#[allow(clippy::integer_arithmetic)] #[allow(clippy::integer_arithmetic)]
let len = status.len(); let len = status.len();