vim-surround icon indicating copy to clipboard operation
vim-surround copied to clipboard

Bug deleting surrounding braces with consecutive matching braces

Open Bothari opened this issue 7 years ago • 3 comments

Pretty simple to repro bug. Two examples (one with c-like syntax, one with lisp-like).

1: Place cursor on Foo(); and type ds{.

{
  if (true)
  {
    Foo();
  }
}

Result:

{
  if (true)
}
Foo();

2: Place cursor on foo and type ds(.

(
  (cond (#t)
    foo
  )
)

Result:

cond (#t)
    foo

I might try and poke around the code and try to submit a pull request, but I'm not familiar with it at all, perhaps someone else will have more immediate luck.

Bothari avatar May 13 '17 01:05 Bothari

Time to assume these issues aren't actively monitored? :(

Bothari avatar May 23 '17 22:05 Bothari

I read it but I don't have time to fix it.

tpope avatar May 23 '17 22:05 tpope

Roger that. I'll investigate and submit a PR if I can figure it out.

Bothari avatar May 23 '17 22:05 Bothari