Skip to content

Fix a few VI edit mode issues #1262

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

Merged
merged 6 commits into from
Jan 7, 2020
Merged

Conversation

daxian-dbw
Copy link
Member

@daxian-dbw daxian-dbw commented Dec 21, 2019

Fix #1258
ViInsertWithDelete changes the VI mode from command mode to insert mode. It should make the mode change before calling DeleteChar, so the handling of ViEndOfLineFactor in DeleteCharImpl would be correct.

Fix #1278
Fix the calculation of how many characters to be deleted in DeleteCharImpl.

Fix #1279
Fix ViForwardChar so that RightArrow works as expected in VI insert mode.

Tests to be added Tests are added.

@daxian-dbw daxian-dbw changed the title Fix 'ArgumentOutOfRangeException' caused in 'ViInsertWithDelete' WIP: Fix a few VI edit mode issues Jan 2, 2020
@daxian-dbw daxian-dbw changed the title WIP: Fix a few VI edit mode issues Fix a few VI edit mode issues Jan 2, 2020
@daxian-dbw
Copy link
Member Author

@msftrncs The PR is ready for re-review. Please take another look when you have time. Thanks!

@daxian-dbw daxian-dbw requested a review from SteveL-MSFT January 6, 2020 17:12
@daxian-dbw
Copy link
Member Author

@SteveL-MSFT If you have time, please help review this PR. I would like to include it in the GA if possible. Thanks!

@daxian-dbw daxian-dbw merged commit 958ce3a into PowerShell:master Jan 7, 2020
@daxian-dbw daxian-dbw deleted the vi-s branch January 7, 2020 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants