on master help sign in
Fix incorrect last modified behavior (#1621)

Looks like it checked the wrong doc id when setting last modified doc.

commit6c11708fb30cd394f136d7ed2807bc92bd67dfad authorIvan Tham <pickfire@riseup.net> dateSun 6 Feb 2022, 13:23 (5 years ago) parent6ea477a
1 file changed+1−1
helix-view/src/editor.rs+1−1
helix-view/src/editor.rs+1−1
@@ -442,7 +442,7 @@ impl Editor {
442442 view.last_accessed_doc = Some(view.doc);
443443 // Set last modified doc if modified and last modified doc is different
444444 if std::mem::take(&mut doc.modified_since_accessed)
445− && view.last_modified_docs[0] != Some(id)
445+ && view.last_modified_docs[0] != Some(view.doc)
446446 {
447447 view.last_modified_docs = [Some(view.doc), view.last_modified_docs[0]];
448448 }