Skip to content

Commit

Permalink
Add redo count to Undoer debug fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
YgorSouza committed Oct 9, 2023
1 parent 0cffdfa commit ec01ff6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/egui/src/util/undoer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ pub struct Undoer<State> {

impl<State> std::fmt::Debug for Undoer<State> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let Self { undos, .. } = self;
let Self { undos, redos, .. } = self;
f.debug_struct("Undoer")
.field("undo count", &undos.len())
.field("redo count", &redos.len())
.finish()
}
}
Expand Down

0 comments on commit ec01ff6

Please sign in to comment.