From 28c167d71d910d113d5217349830a42fa52e9a9d Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Mon, 3 May 2021 17:23:11 +0900 Subject: doc: Be smarter about calculating modified status. This way edit -> undo will properly show up as unmodified. --- helix-term/src/ui/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helix-term/src') 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, -- cgit v1.2.3-70-g09d2