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.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/helix-view/src/events.rs b/helix-view/src/events.rs index 88141249..136d60c5 100644 --- a/helix-view/src/events.rs +++ b/helix-view/src/events.rs @@ -1,10 +1,16 @@ -use helix_core::Rope; +use helix_core::{ChangeSet, Rope}; use helix_event::events; use crate::{Document, DocumentId, Editor, ViewId}; events! { - DocumentDidChange<'a> { doc: &'a mut Document, view: ViewId, old_text: &'a Rope } + DocumentDidChange<'a> { + doc: &'a mut Document, + view: ViewId, + old_text: &'a Rope, + changes: &'a ChangeSet, + ghost_transaction: bool + } SelectionDidChange<'a> { doc: &'a mut Document, view: ViewId } DiagnosticsDidChange<'a> { editor: &'a mut Editor, doc: DocumentId } } |