mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-24 19:10:24 +00:00
Don't clear redo stack when editing
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
e534fe9112
commit
d0b06a2a1d
1 changed files with 0 additions and 1 deletions
|
@ -153,7 +153,6 @@ impl UndoHistory {
|
|||
}
|
||||
|
||||
fn push(&mut self, edit_id: time::Local, now: Instant) {
|
||||
self.redo_stack.clear();
|
||||
if let Some(edit_group) = self.undo_stack.last_mut() {
|
||||
if now - edit_group.last_edit_at <= self.group_interval {
|
||||
edit_group.edits.push(edit_id);
|
||||
|
|
Loading…
Reference in a new issue