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

updating the undo tree when using bracket operators slightly #634

Merged
merged 3 commits into from
Aug 24, 2016
Merged

updating the undo tree when using bracket operators slightly #634

merged 3 commits into from
Aug 24, 2016

Conversation

xconverge
Copy link
Member

@xconverge xconverge commented Aug 21, 2016

Yay! We love PRs! 🎊

Please include a description of your change & check your PR against this list, thanks:

  • Commit message has a short title & issue references
  • Each commit does a logical chunk of work.
  • It builds and tests pass (e.g gulp tslint)

More info can be found by clicking the "guidelines for contributing" link above.

(vimState.currentMode === ModeName.Insert && "<[({".indexOf(key) !== -1);
ranAction = ranAction && vimState.currentMode === ModeName.Normal;
if (vimState.currentMode === ModeName.Insert) {
const letterToTheLeft = TextEditor.getLineAt(vimState.cursorPosition).text[vimState.cursorPosition.character - 2];
Copy link
Member

Choose a reason for hiding this comment

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

How does this work when vimState.cursorPosition.character - 2 is less than 0?

@xconverge
Copy link
Member Author

Fixing the overrun still, had to get off the train :)

@xconverge
Copy link
Member Author

Ok, should be a bit better now

@johnfn johnfn merged commit 10d6f1a into VSCodeVim:master Aug 24, 2016
@johnfn
Copy link
Member

johnfn commented Aug 24, 2016

Thanks, @xconverge! :)

@xconverge xconverge deleted the undo-bracket-behavior branch August 26, 2016 23:59
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