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

Change/Delete/Yank combined with next unmatched bracket/parenthesis not behaving correctly #2670

Closed
willcassella opened this issue May 21, 2018 · 0 comments · Fixed by #2671
Labels

Comments

@willcassella
Copy link
Contributor

Is this a BUG REPORT or FEATURE REQUEST? (choose one):
BUG REPORT

What happened:
Using an operation like "d])" or "d]}" deletes the unmatched closing parenthesis/bracket, which is not how real vim behaves. Examples:

Case 1:
Buffer: (hello, [w]orld!)
Input: d])
Result: (hello,[ ]
Expected: (hello, [)]

Case 2:
Buffer: {hello, [w]orld!}
Input: y]}$p
Result: {hello, world!}world![}]
Expected: {hello, world!}world[!]

What did you expect to happen:
Yank/Change/Delete combined with move forward to next unmatched bracket/parenthesis shouldn't delete the unmatched parenthesis. Strangely, moving backwards doesn't get the same treatment in real vim, but whatever...

How to reproduce it (as minimally and precisely as possible):
See above

Environment:

  • Extension (VsCodeVim) version: 0.12.0
  • VSCode version: 1.23
  • OS version: Manjaro Linux latest/Windows 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants