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

Fixes #1674: repeating . with characters like " or ) leaves cursor in wrong place #1700

Merged
merged 4 commits into from
May 21, 2017

Conversation

Chillee
Copy link
Member

@Chillee Chillee commented May 16, 2017

So this one is kinda weird.

I'll put my main comments in the code review.

// Push document content change to the stack
lastAction.contentChanges = lastAction.contentChanges.concat(
vimState.historyTracker.currentContentChanges.map(x => ({
textDiff: x,
positionDiff: startsWithPairedCharacter(x.text) ? new PositionDiff(0, -1) : new PositionDiff(0, 0),
positionDiff: new PositionDiff(0, 0)
Copy link
Member

Choose a reason for hiding this comment

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

Can this be removed now?

@Chillee
Copy link
Member Author

Chillee commented May 21, 2017

As the issue that was the cause of the confusing code no longer replicates (#1389), I'm gonna merge this PR.

@Chillee Chillee merged commit 7a33511 into VSCodeVim:master May 21, 2017
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