Ctrl-X doesn't go below 0
Closed this issue · 6 comments
It just swaps between 0 and 1, but it should go to -1, -2, etc., instead
Hey, can you check out dev
(in particular fb8bcc6
), see if it works well for you? I'll merge it into master in a couple of days if you don't see anything wrong with it.
It works now, except for the case when the number is in the beginning of the line.
In the beginning of the line it will increment 19
to 110
, and decrement 10
to 1-1
(in case cursor is on 0
)
It's actually a problem when the number is the entire line, not just the start (matching goes sour when trying to find the first non-digit). Should work now, added a guard.
Pulled the dev branch, still have the same problem
Implemented the guards in the wrong order. 😐
Sorry about the churn, feel free to pull dev
and test again.
Works fine now, thanks