Insert a time heading when creating a journal entry

This commit is contained in:
Nathan Sobo 2021-12-18 10:38:54 -07:00
parent 9e8ef31452
commit e4f18947de
6 changed files with 70 additions and 39 deletions

View file

@ -1251,7 +1251,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.selections::<usize>(cx).collect::<SmallVec<[_; 32]>>();
let mut new_selections = Vec::new();