tpope/vim-surround

Plugin misbehaves when </br> are around

Aster89 opened this issue · 1 comments

Given this snippet

<div class="three">
  <div class="two">
    <p class="one">
    one</br>
    two</br>
    three</br>
    four
    </p>
  </div>
</div>

hitting dit with the cursor on one/two/three/four deletes what's inside the tags with the corresponding class (for four nothing is deleted).

Only the behavior for one is the expected, the other three (two/three/four) are unexpected, and the former two (two/three) can delete much more stuff than one intends to.

How did I end up writing </br> think it was the break instead of <br>? Sorry, closing.