summaryrefslogtreecommitdiff
path: root/helix-view/src/events.rs
blob: 8b789cc0d21e0ba9b82649388f90a25ebba257ae (plain) (blame)
1
2
3
4
5
6
7
8
9
use helix_core::Rope;
use helix_event::events;

use crate::{Document, ViewId};

events! {
    DocumentDidChange<'a> { doc: &'a mut Document, view: ViewId, old_text: &'a Rope  }
    SelectionDidChange<'a> { doc: &'a mut Document, view: ViewId }
}