aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-05-03 08:23:11 +0000
committerBlaž Hrastnik2021-05-03 08:23:11 +0000
commit28c167d71d910d113d5217349830a42fa52e9a9d (patch)
tree8cd2790b625761c2da16cce4ba2acf238f1729a4 /helix-term/src
parent594575ba3f1cd1775f104c95ce604f952ccd5caf (diff)
doc: Be smarter about calculating modified status.
This way edit -> undo will properly show up as unmodified.
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/ui/editor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs
index 227ccdaa..13ac88fd 100644
--- a/helix-term/src/ui/editor.rs
+++ b/helix-term/src/ui/editor.rs
@@ -440,7 +440,7 @@ impl EditorView {
if let Some(path) = doc.relative_path() {
let path = path.to_string_lossy();
- let title = format!("{}{}", path, if doc.modified() { "[+]" } else { "" });
+ let title = format!("{}{}", path, if doc.is_modified() { "[+]" } else { "" });
surface.set_stringn(
viewport.x + 6,
viewport.y,