Fix: Use `typing.undoStep` in both `InputCommand` and `DeleteCommand`. Closes #79. BREAKING CHANGE: The `undo.step` configuration option was replaced by `typing.undoStep` in `DeleteCommand`. See #79.
@@ -45,7 +45,7 @@ export default class DeleteCommand extends Command {
* @private
* @member {typing.ChangeBuffer} #buffer
*/
- this._buffer = new ChangeBuffer( editor.document, editor.config.get( 'undo.step' ) );
+ this._buffer = new ChangeBuffer( editor.document, editor.config.get( 'typing.undoStep' ) );
}
/**
@@ -16,8 +16,8 @@ describe( 'DeleteCommand integration', () => {
plugins: [
UndoEngine
],
- undo: {
- step: 3
+ typing: {
+ undoStep: 3
} )
.then( newEditor => {