Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-view/src/events.rs')
-rw-r--r--helix-view/src/events.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/helix-view/src/events.rs b/helix-view/src/events.rs
index 136d60c5..eb97268c 100644
--- a/helix-view/src/events.rs
+++ b/helix-view/src/events.rs
@@ -13,4 +13,6 @@ events! {
}
SelectionDidChange<'a> { doc: &'a mut Document, view: ViewId }
DiagnosticsDidChange<'a> { editor: &'a mut Editor, doc: DocumentId }
+ // called **after** a document loses focus (but not when its closed)
+ DocumentFocusLost<'a> { editor: &'a mut Editor, doc: DocumentId }
}