From 068d6b5ad807608191e2ce5a2604ba4f556b2ba6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Krzto=C5=84?= Date: Mon, 6 Mar 2017 13:40:00 +0100 Subject: [PATCH] Use typing.undoStep config in DeleteCommand. --- src/deletecommand.js | 2 +- tests/deletecommand-integration.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 => {