Skip to content

Commit

Permalink
Merge pull request #1681 from Chillee/master
Browse files Browse the repository at this point in the history
Fixed some regressions I introduced
  • Loading branch information
xconverge authored May 10, 2017
2 parents 09b50ab + d74315e commit 45b334c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/actions/operator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export class ShiftYankOperatorVisual extends BaseOperator {

@RegisterAction
export class DeleteOperatorXVisual extends BaseOperator {
public keys = ["x", "<Del>"];
public keys = [["x"], ["<Del>"]];
public modes = [ModeName.Visual, ModeName.VisualLine];

public async run(vimState: VimState, start: Position, end: Position): Promise<VimState> {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 45b334c

Please sign in to comment.