summaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorSkyler Hawthorne2022-08-31 03:10:33 +0000
committerSkyler Hawthorne2022-10-19 02:31:39 +0000
commit18c32118b1df63895b662c1b37ada28ad0d5c9b5 (patch)
tree3d7a96b15e6bd8fc3255460c56188bd78176310b /helix-term/src
parentf82a551b98cec165ac91aae15ba656a811229fde (diff)
Save text in document saved events, use in status message
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/application.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index a06460de..793993ee 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -459,8 +459,8 @@ impl Application {
doc.set_last_saved_revision(doc_save_event.revision);
- let lines = doc.text().len_lines();
- let bytes = doc.text().len_bytes();
+ let lines = doc_save_event.text.len_lines();
+ let bytes = doc_save_event.text.len_bytes();
if let Err(err) = doc.set_path(Some(&doc_save_event.path)) {
log::error!(