Skip to content

Commit

Permalink
fixes #740 (#766)
Browse files Browse the repository at this point in the history
  • Loading branch information
xconverge authored and rebornix committed Sep 14, 2016
1 parent 3dc5f10 commit 4c32893
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/actions/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2773,6 +2773,12 @@ class ActionDeleteChar extends BaseCommand {
canBeRepeatedWithDot = true;

public async exec(position: Position, vimState: VimState): Promise<VimState> {

// If only EOL do nothing
if (TextEditor.getLineAt(position).text.length < 1) {
return vimState;
}

const state = await new DeleteOperator().run(vimState, position, position);

state.currentMode = ModeName.Normal;
Expand Down

0 comments on commit 4c32893

Please sign in to comment.