Fix that ViFindBrace doesn't search for brace when current char is not a brace#4862
Fix that ViFindBrace doesn't search for brace when current char is not a brace#4862sharpchen wants to merge 1 commit intoPowerShell:masterfrom
Conversation
|
S |
|
You are right that's how it works. I'm hoping we can do two things: verify the order of precedence in vanilla Vi (I was playing around trying to determine it and couldn't make heads or tails of it), and add some unit tests. Thanks! Love the fix though. |
Not sure what it means? If you mean the standard behavior,
And
It indeed requires some tests. I did find at least one inconsistent behavior. |
PR Summary
Vi searches right pair of first left brace, or first right brace when current char is not a brace. This pr added this functionality.
After the update,

ViGotoBraceshould work like this(of course this will also affect other methods such asViDeleteBrace):PR Checklist
Microsoft Reviewers: Open in CodeFlow