You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: replay_bloc keeps more undo history than limit after limit is lowered #4901
ReplayCubit/ReplayBloc (and the mixins) expose a limit setter: "Sets the internal undo/redo size limit." When limit is lowered after history has built up, the history is never trimmed to the new limit:
Setting limit doesn't trim anything, so the next undo() calls go back further than the limit allows.
After the next emit, _ChangeStack.add removes only one old entry (if, not while), so the history stays above the limit.
Activity