Delete operations override 0 (yank register)
Closed this issue · 0 comments
jojojames commented
Noticed evil-cp-delete-char-or-splice is calling evil-cp--yank which eventually checks
(when evil-was-yanked-without-register
(evil-set-register ?0 text)) ; "0 register contains last yanked text
where evil-was-yanked-without-register is t (for some reason).
With evil-cleverparens disabled, on a text of
a
b
yy on line a -> :reg -> a is in the 0 register
dd on line b -> :reg -> a is in the 0 register, b is in the 1 register (and others) (expected)
With evil-cleverparens enabled, with the same text
yy on line a -> :reg -> a is in the 0 register
dd on line b -> : reg -> b has replaced a in the 0 register (unexpected)