- Fixed undo history not updating its size correctly when clearing redo steps. This caused undo history to get shorter without reaching the undo history size limit.
