vim: Increment search right (#10866)

Hi there, nice editor!
Here's my attempt at fixing #10865.

Thanks

Release Notes:

-vim: Fix ctrl+a when cursor is on a decimal point
([#10865](https://github.com/zed-industries/zed/issues/10865)).

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
Hendrik Sollich
2024-04-25 19:47:52 -06:00
committed by GitHub
co-authored by Conrad Irwin
parent d9eb3c4b35
commit 604857ed2e
3 changed files with 61 additions and 6 deletions
@@ -0,0 +1,5 @@
{"Put":{"state":"1ˇ.2\n"}}
{"Key":"ctrl-a"}
{"Get":{"state":"1.ˇ3\n","mode":"Normal"}}
{"Key":"ctrl-x"}
{"Get":{"state":"1.ˇ2\n","mode":"Normal"}}
@@ -0,0 +1,5 @@
{"Put":{"state":"111.ˇ.2\n"}}
{"Key":"ctrl-a"}
{"Get":{"state":"111..ˇ3\n","mode":"Normal"}}
{"Key":"ctrl-x"}
{"Get":{"state":"111..ˇ2\n","mode":"Normal"}}