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:
parent
d9eb3c4b35
commit
604857ed2e
3 changed files with 61 additions and 6 deletions
5
crates/vim/test_data/test_increment_with_dot.json
Normal file
5
crates/vim/test_data/test_increment_with_dot.json
Normal file
|
@ -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"}}
|
5
crates/vim/test_data/test_increment_with_two_dots.json
Normal file
5
crates/vim/test_data/test_increment_with_two_dots.json
Normal file
|
@ -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"}}
|
Loading…
Add table
Add a link
Reference in a new issue