Insert a time heading when creating a journal entry
This commit is contained in:
parent
9e8ef31452
commit
e4f18947de
6 changed files with 70 additions and 39 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue