1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-09-02 11:42:53 +02:00

Managing History limits (#1421)

* Undo size is measured in  rather than

* Revert local settings
This commit is contained in:
dmitrizzle
2017-11-20 04:01:08 +07:00
committed by Ian Storm Taylor
parent aec62f06ba
commit 5542766092

View File

@@ -143,7 +143,7 @@ class History extends Record(DEFAULTS) {
} }
// Constrain the history to 100 entries for memory's sake. // Constrain the history to 100 entries for memory's sake.
if (undos.length > 100) { if (undos.size > 100) {
undos = undos.take(100) undos = undos.take(100)
} }