Fix tests that failed due to defaulting the grouping interval to zero in tests
This commit is contained in:
parent
386f7ba16d
commit
213658f1e9
4 changed files with 25 additions and 3 deletions
|
@ -3611,7 +3611,9 @@ impl Editor {
|
|||
}
|
||||
|
||||
pub fn undo(&mut self, _: &Undo, cx: &mut ViewContext<Self>) {
|
||||
dbg!("undo");
|
||||
if let Some(tx_id) = self.buffer.update(cx, |buffer, cx| buffer.undo(cx)) {
|
||||
dbg!(tx_id);
|
||||
if let Some((selections, _)) = self.selection_history.transaction(tx_id).cloned() {
|
||||
self.change_selections(None, cx, |s| {
|
||||
s.select_anchors(selections.to_vec());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue