mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-13 19:57:00 +01:00
Managing History limits (#1421)
* Undo size is measured in rather than * Revert local settings
This commit is contained in:
parent
aec62f06ba
commit
5542766092
@ -143,7 +143,7 @@ class History extends Record(DEFAULTS) {
|
||||
}
|
||||
|
||||
// Constrain the history to 100 entries for memory's sake.
|
||||
if (undos.length > 100) {
|
||||
if (undos.size > 100) {
|
||||
undos = undos.take(100)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user