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:
committed by
Ian Storm Taylor
parent
aec62f06ba
commit
5542766092
@@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user