fixed
This commit is contained in:
parent
7c5794e110
commit
6a8c46a6c4
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue