Closed midchildan closed 4 years ago
Imagine we're editing hyphen-separated numbers like the following:
cursor: v text: 2020-01-02
When we invoke inc-at-pt, we want the last number to change:
inc-at-pt
cursor: v text: 2020-01-01
(Note that the number is decremented instead of being incremented due to the leading -. This also matches Vim behavior)
-
However, evil-numbers currently change the first number instead:
cursor: v text: 2021-01-02
This patch fixes evil-numbers to match the expected behavior.
Fixed a typo in the commit message.
Thank you and thanks for the ping
Imagine we're editing hyphen-separated numbers like the following:
When we invoke
inc-at-pt
, we want the last number to change:(Note that the number is decremented instead of being incremented due to the leading
-
. This also matches Vim behavior)However, evil-numbers currently change the first number instead:
This patch fixes evil-numbers to match the expected behavior.