PSReadLine icon indicating copy to clipboard operation
PSReadLine copied to clipboard

Fix that ViFindBrace doesn't search for brace when current char is not a brace

Open sharpchen opened this issue 5 months ago • 0 comments

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, ViGotoBrace should work like this(of course this will also affect other methods such as ViDeleteBrace): foo

PR Checklist

  • [x] PR has a meaningful title
    • Use the present tense and imperative mood when describing your changes
  • [x] Summarized changes
  • [ ] Make sure you've added one or more new tests
  • [x] Make sure you've tested these changes in terminals that PowerShell is commonly used in (i.e. conhost.exe, Windows Terminal, Visual Studio Code Integrated Terminal, etc.)
  • User-facing changes
    • [ ] Not Applicable
    • OR
    • [ ] Documentation needed at PowerShell-Docs
      • [ ] Doc Issue filed:
Microsoft Reviewers: Open in CodeFlow

sharpchen avatar Jul 22 '25 23:07 sharpchen