Closed kaiphat closed 9 months ago
I presume replacement is done with sr{]
. In this case it is an expected behavior, because opening brackets include outer whitespace padding into them. Try using sr}]
to not include whitespace.
Here are more examples of this behavior.
Thank you!
Contributing guidelines
Module(s)
surround
Neovim version
0.9.4
Steps to reproduce
I want to replace
{}
brackets to[]
When i do replacing i get
As you can see bottom brackets and
userId
changed their positions.Expected behavior
Brackets shouldn't move when i do replacing