emacs-evil / evil-surround

you will be surrounded (surround.vim for evil, the extensible vi layer)
Other
627 stars 60 forks source link

Repeating a tag change that preserves attributes doesn't work #161

Closed jamesnvc closed 4 years ago

jamesnvc commented 4 years ago

e.g. with the cursor as indicated on the "f" of "foo"

<div attr="1">[f]oo</div><div attr="2">bar</div>

entering cst<span results in

<span attr="1">foo</span><div attr="2">bar</div>

as expected. However, moving the cursor to the "b" of bar and hitting . results in

<span attr="1">foo</span>< attr="2">bar</>
jamesnvc commented 4 years ago

Possibly related to #159 ?

jamesnvc commented 4 years ago

Ah, this is just because evil-surround-change isn't wrapped in evil-surround-call-with-repeat, I think. Oh, but evil-change is natively repeatable, so it shouldn't need to be...

ninrod commented 4 years ago

solved. see #162