Change summary
crates/editor/src/editor.rs | 8 +++-----
crates/language/src/multi_buffer.rs | 1 +
2 files changed, 4 insertions(+), 5 deletions(-)
Detailed changes
@@ -3211,18 +3211,16 @@ impl Editor {
fn start_transaction(&mut self, cx: &mut ViewContext<Self>) {
self.end_selection(cx);
- self.buffer.update(cx, |buffer, _| {
+ self.buffer.update(cx, |buffer, cx| {
buffer
- .start_transaction(Some(self.selection_set_id))
+ .start_transaction([self.selection_set_id], cx)
.unwrap()
});
}
fn end_transaction(&self, cx: &mut ViewContext<Self>) {
self.buffer.update(cx, |buffer, cx| {
- buffer
- .end_transaction(Some(self.selection_set_id), cx)
- .unwrap()
+ buffer.end_transaction([self.selection_set_id], cx).unwrap()
});
}
@@ -169,6 +169,7 @@ impl MultiBuffer {
pub fn start_transaction(
&mut self,
selection_set_ids: impl IntoIterator<Item = SelectionSetId>,
+ cx: &mut ModelContext<Self>,
) -> Result<()> {
todo!()
}