-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Conversation
Sorry for the earlier Code. Should have created a new branch for the first one as well :) |
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 |
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( |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Excellent, and tests too. Awesome job. Thanks for the PR. :) |
The delete function of the DeleteOperation Class already account for this case, if the Register Mode is set to LineWise.