Start work on following in multi-buffers

This commit is contained in:
Max Brunsfeld 2022-11-29 14:50:43 -08:00
parent 82abf31ef1
commit 6120d6488b
8 changed files with 241 additions and 56 deletions

View file

@ -6587,8 +6587,16 @@ fn compute_scroll_position(
scroll_position
}
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
#[derive(Clone, Debug, PartialEq, Eq)]
pub enum Event {
ExcerptsAdded {
buffer: ModelHandle<Buffer>,
predecessor: ExcerptId,
excerpts: Vec<(ExcerptId, ExcerptRange<language::Anchor>)>,
},
ExcerptsRemoved {
ids: Vec<ExcerptId>,
},
BufferEdited,
Edited,
Reparsed,
@ -6596,8 +6604,12 @@ pub enum Event {
DirtyChanged,
Saved,
TitleChanged,
SelectionsChanged { local: bool },
ScrollPositionChanged { local: bool },
SelectionsChanged {
local: bool,
},
ScrollPositionChanged {
local: bool,
},
Closed,
IgnoredInput,
}