diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index a88d962ba9..ae1143d0fa 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -3211,18 +3211,16 @@ impl Editor { fn start_transaction(&mut self, cx: &mut ViewContext) { 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.buffer.update(cx, |buffer, cx| { - buffer - .end_transaction(Some(self.selection_set_id), cx) - .unwrap() + buffer.end_transaction([self.selection_set_id], cx).unwrap() }); } diff --git a/crates/language/src/multi_buffer.rs b/crates/language/src/multi_buffer.rs index 12834a53d3..300deb4487 100644 --- a/crates/language/src/multi_buffer.rs +++ b/crates/language/src/multi_buffer.rs @@ -169,6 +169,7 @@ impl MultiBuffer { pub fn start_transaction( &mut self, selection_set_ids: impl IntoIterator, + cx: &mut ModelContext, ) -> Result<()> { todo!() }