Merge branch 'main' into share-project
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
commit
466a377e1d
16 changed files with 423 additions and 306 deletions
|
@ -1257,7 +1257,7 @@ impl Editor {
|
|||
}
|
||||
}
|
||||
|
||||
fn insert(&mut self, text: &str, cx: &mut ViewContext<Self>) {
|
||||
pub fn insert(&mut self, text: &str, cx: &mut ViewContext<Self>) {
|
||||
self.start_transaction(cx);
|
||||
let old_selections = self.local_selections::<usize>(cx);
|
||||
let new_selections = self.buffer.update(cx, |buffer, cx| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue