diff --git a/src/deletecommand.js b/src/deletecommand.js index b494a7a..171b29b 100644 --- a/src/deletecommand.js +++ b/src/deletecommand.js @@ -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' ) ); } /** diff --git a/tests/deletecommand-integration.js b/tests/deletecommand-integration.js index dcfb414..4c63ed5 100644 --- a/tests/deletecommand-integration.js +++ b/tests/deletecommand-integration.js @@ -16,8 +16,8 @@ describe( 'DeleteCommand integration', () => { plugins: [ UndoEngine ], - undo: { - step: 3 + typing: { + undoStep: 3 } } ) .then( newEditor => {