Closed duianto closed 5 years ago
Yeah, I concur that this is strange, but it respects the same behaviour as vim-surround, which we follow.
There's an open issue about it on the vim-surround repository: Issue dsB #223
I commented there as well, so maybe it will be fixed "upstream", or someone might have an explanation as to why it works that way.
qstrahl mentions there, that ds{
deletes the leading whitespace, and that also works with evil-surround.
The vim issues with the horstmann brace placement style, does not happen with evil-surround.
all right, let's keep an eye on it.
Observed behavior
An open curly bracket after a compound statement causes an issue when the brackets are deleted.
Before:
With the cursor on the word
true
Press:
dsB
ords}
After:
The
true
line ends up where the open curly bracket was, and it still has the leading whitespace.Expected behavior
System information