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

Surround cs[{ bug #1852

Closed
tedbauer opened this issue Jun 18, 2017 · 0 comments
Closed

Surround cs[{ bug #1852

tedbauer opened this issue Jun 18, 2017 · 0 comments

Comments

@tedbauer
Copy link

tedbauer commented Jun 18, 2017

  • Click thumbs-up 👍 on this issue if you want it!
  • Click confused 😕 on this issue if not having it makes VSCodeVim unusable.

The VSCodeVim team prioritizes issues based on reaction count.


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

Environment:

  • VSCode Version: 1.13.1
  • VsCodeVim Version: 0.8.6
  • OS: Mac OSX El Capitan 10.11.6

What happened:
With the cursor over the [ with the following code, I entered cs[{, and a leftover closing square brace remained in between the new curly braces.
Before:

int main() { 

    for (;;) [
    ]

}

After:

int main() { 


    for (;;) { 
] }

}

Furthermore, if there is an empty line between the opening and closing braces, e.g. we have something like

int main() { 

    for (;;) [

    ]

}

and I try the same thing, there is no replacement. At the bottom of VSCode there are the following messages at each keystroke:
-- SURROUND INPUT MODE -- cs
-- SURROUND INPUT MODE -- cs[
-- SURROUND INPUT MODE --{

What did you expect to happen: I expected the opening and closing square brackets to turn into opening and closing curly braces.

How to reproduce it: Try above steps.

Strafos added a commit to Strafos/Vim that referenced this issue Oct 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants