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 #2569. Fix vi{ for nested braces. #2572

Merged
merged 3 commits into from
Apr 26, 2018
Merged

Conversation

Shadaraman
Copy link
Contributor

What this PR does / why we need it:
Fixes the logic for selecting within pairs of braces in certain specific cases:

  • Nested braces where the outer closing brace has no leading whitespace and the brace above does
  • Closing braces indented by only one space

Which issue(s) this PR fixes
#2569

Special notes for your reviewer:

@xconverge
Copy link
Member

Looks good to me, the code here looks a bit finnicky but as long as we keep adding tests and they keep passing I am ok with it!

Thanks!

@xconverge xconverge merged commit 5da0ab1 into VSCodeVim:master Apr 26, 2018
@Shadaraman
Copy link
Contributor Author

The code here seems very finnicky. If I get more time, I'd like to dig in and understand it a little better; it's possible it can be simplified or at least clarified.

@xconverge
Copy link
Member

Really appreciate the contribution!

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