Repost due to getting some details wrong in the original title.

Also, actually, the command doesn't fail: it interprets d 10 as C-u 62-, so d 10 j is read as C-u 62 j, and instead of deleting 10 lines below point, we instead jump 62 lines down. d 20 j is interpreted as C-u 72 j, d 30 j as C-u 82 j, and so on (unless there are multiple 0s in the command; for instance d 100 j is read as C-u 620 j).

Here's the init.el needed to reproduce this issue; just open a buffer and activate evil-org-mode, then do any evil command with a 0 in the digit argument: y 10 j, d 10 k, y 30 l, etc.

I discovered that this is due to this line in evil-org-mode; commenting it out removes the issue. However, I'm not sure why that is; what it's attempting to do makes sense to me, and it seems to be identical to what evil itself does.

I'd use edebug, but I'm not sure if that's possible since the result of the evil-redirect-digit-argument call is just a wrapper of a lambda that I don't know how to step into. Besides, evil-redirect-digit-argument seems to be being used correctly from what I can tell.

Does anyone know what's causing this issue or how to fix it? I'm super curious.

submitted by /u/summetria
[link] [comments]