From d74315e956166ffd59535e61b98265211b8b70da Mon Sep 17 00:00:00 2001 From: Horace He Date: Tue, 9 May 2017 23:43:35 -0400 Subject: [PATCH] Fixed some regressions I introduced --- src/actions/operator.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/actions/operator.ts b/src/actions/operator.ts index 71396f7ef5e..7fbd69383da 100644 --- a/src/actions/operator.ts +++ b/src/actions/operator.ts @@ -235,7 +235,7 @@ export class ShiftYankOperatorVisual extends BaseOperator { @RegisterAction export class DeleteOperatorXVisual extends BaseOperator { - public keys = ["x", ""]; + public keys = [["x"], [""]]; public modes = [ModeName.Visual, ModeName.VisualLine]; public async run(vimState: VimState, start: Position, end: Position): Promise { @@ -426,7 +426,7 @@ export class ChangeOperator extends BaseOperator { state.currentMode = ModeName.Insert; if (isEndOfLine) { - state.cursorPosition = state.getRight(); + state.cursorPosition = end.getRight(); } return state;