Avoid grouping transactions created by different editors

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra 2022-01-27 15:51:46 +01:00
parent adf00fafdf
commit f055053fc9
5 changed files with 61 additions and 1 deletions

View file

@ -1234,6 +1234,10 @@ impl Buffer {
}
}
pub fn avoid_grouping_next_transaction(&mut self) {
self.text.avoid_grouping_next_transaction();
}
pub fn set_active_selections(
&mut self,
selections: Arc<[Selection<Anchor>]>,