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

Spacing bug using surround until end of word (ysw) #2168

Closed
SanderBeekhuis opened this issue Nov 22, 2017 · 0 comments
Closed

Spacing bug using surround until end of word (ysw) #2168

SanderBeekhuis opened this issue Nov 22, 2017 · 0 comments

Comments

@SanderBeekhuis
Copy link

SanderBeekhuis commented Nov 22, 2017

BUG REPORT

Environment:

  • VSCode Version: 1.17.12
  • VsCodeVim Version: 0.10.5
  • OS: macOS Sierra 10.12.6 (16G29)

What happened:
The surround command does not space correctly around a word:

for example: word word word

is changed to: word [ word ]word
With 2 space before the bracket and zero after

Exact keys you pressed
Cmd + n (new file)
iword word word (some text)
bb (locate cursor)
ysw[

What did you expect to happen:
word [ word ] word

How to reproduce it:
As described above

Notes

  • Also goes wrong for other delimiters ()[] ...

  • The same bug impacts a word (eg. ysaw[)

  • inner word works correctly (eg. ysiw[ )

  • I love this plugin, keep up the good work

Chillee added a commit that referenced this issue Nov 22, 2017
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

No branches or pull requests

1 participant