vim-surround
vim-surround copied to clipboard
wrong behavior of "dsB" command
When the cursor is on "return" (vim: set noet, >--- means tab indent):
void foo()
{
>---if(bar)
>---{
>--->---return;
>---}
}
And then press "dsB", the result is...
void foo()
{
>---if(bar)
}
return;
Cannot recreate this. Maybe the issue is somewhere else.
I guess you just paste above code ... You should replace ">---" to real TAB and then test.
I can recreate this on master. With expandtab enabled, this correctly results in the following:
void foo()
{
if(bar)
return;
}
Reproduced on master with
vim -u NONE
:so [plugin directory]vim-surround/plugin/surround.vim
Same thing happens for ds{
This looks like a duplicate of #87