Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

D in visual mode behaves like d #1297

Merged
merged 5 commits into from
Feb 15, 2017
Merged

Conversation

xlaech
Copy link
Contributor

@xlaech xlaech commented Feb 14, 2017

The delete function of the DeleteOperation Class already account for this case, if the Register Mode is set to LineWise.

@xlaech
Copy link
Contributor Author

xlaech commented Feb 14, 2017

Sorry for the earlier Code. Should have created a new branch for the first one as well :)

@xconverge
Copy link
Member

Nice, mind adding a test to the bottom of modeVisual.test.ts? you can use newTestOnly() to run just the test that you are making, then you can switch it back to newTest() before you commit so that all tests still run

@xconverge
Copy link
Member

Awesome!

@@ -696,7 +696,9 @@ export class CommandOneNormalCommandInInsertMode extends BaseCommand {

public async exec(position: Position, vimState: VimState): Promise<VimState> {
vimState.returnToInsertAfterCommand = true;
return await new CommandEscInsertMode().exec(position, vimState);
return await new CommandEscInsertMode().exec(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that this bit is relevant to the D fix, right? Could you remove it and include it in a separate PR?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait nevermind, it doesn't really matter heh.

@johnfn
Copy link
Member

johnfn commented Feb 15, 2017

Excellent, and tests too. Awesome job. Thanks for the PR. :)

@johnfn johnfn merged commit 2753942 into VSCodeVim:master Feb 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants