Skip to content

Conversation

Whiskas101
Copy link
Contributor

What this PR does / why we need it:
Fixes the weird behaviour when using VisualLine mode with the Vi{ or Vi( or Vi[ when the matching braces are on different lines. The issue is well explained in #9337 (relevant images explaining the problem are present there so I have omitted them here).

Which issue(s) this PR fixes
As a fix for issue #9337

Special notes for your reviewer:
Only affects VisualLine mode when using Vi{. Everything else is left untouched, all tests pass locally.

@Whiskas101 Whiskas101 changed the title Fixing Vi{ incorrectly grabbing selecting the ending braces Fixing Vi{ incorrectly grabbing the ending braces Jun 25, 2025
@J-Fields
Copy link
Member

Thanks; mind adding a test case?

@Whiskas101
Copy link
Contributor Author

Sure, will do.

@Whiskas101
Copy link
Contributor Author

I've added a test case, let me know if im supposed to add more, or anything else I might have missed.

Copy link
Member

@J-Fields J-Fields left a comment

Choose a reason for hiding this comment

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

Thanks!

@J-Fields J-Fields merged commit 041f8f0 into VSCodeVim:master Jul 14, 2025
1 check passed
pull bot pushed a commit to danyx23/Vim that referenced this pull request Aug 14, 2025
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