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

Remapper cleanup key history #1416

Merged
merged 1 commit into from
Mar 24, 2017
Merged

Remapper cleanup key history #1416

merged 1 commit into from
Mar 24, 2017

Conversation

xconverge
Copy link
Member

@xconverge xconverge commented Mar 21, 2017

  • fixes using o then jj remapped to not deleting whitespace due to o checking for previous keys

… or O command. If jj was remapped to <esc> it would not properly remove whitespace after o due to leftover j in keyHistory.
@@ -3615,7 +3615,7 @@ abstract class MoveByScreenLine extends BaseMovement {
let stop = Position.FromVSCodePosition(vscode.window.activeTextEditor.selection.end);

// We want to swap the cursor start stop positions based on which direction we are moving, up or down
if (start.line < position.line) {
if (start.line < position.line && this.movementType === "up") {
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need to check movementType == "up"?

Copy link
Member Author

Choose a reason for hiding this comment

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

I will take a peek to have a better answer for you, I was just playing wack a mole.

Copy link
Member Author

Choose a reason for hiding this comment

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

This will be a separate issue, it is too broken to fix with this, V H, V L, Vgjgjgj, and Vgkgkgk all need to work without breaking other screen line stuff

@xconverge xconverge merged commit b34e72f into VSCodeVim:master Mar 24, 2017
@jpoon
Copy link
Member

jpoon commented Mar 24, 2017

@xconverge noice. using your commit rights 👍

@xconverge xconverge deleted the remapper-cleanup-keyHistory branch March 24, 2017 04:28
@xconverge
Copy link
Member Author

responsibly 👍

This pull request was closed.
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.

2 participants