mirror of
https://github.com/zed-industries/zed.git
synced 2026-08-16 12:34:26 +00:00
Finally continuing from PR #35200: I adapted the fix to the changed find_target() logic and added more tests for version strings like `0.82.46`. This is a different but similar fix compared to #47356 for helix mode - not sure if this can and should be unified? Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) (should not affect UI at all) - [x] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable Closes #35193 Release Notes: - Fixed vim's increment (`ctrl-a`) and decrement (`ctrl-x`) commands skipping the number under the cursor in dotted strings like version numbers (e.g. `0.81.46`) and hyphened date strings (e.g. `2015-02-01`) --------- Co-authored-by: Stefan Bethge <kjyv@users.noreply.github.com> Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com> Co-authored-by: dino <dinojoaocosta@gmail.com>
11 lines
336 B
JSON
11 lines
336 B
JSON
{"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"}}
|
|
{"Put":{"state":"0.8ˇ1.46"}}
|
|
{"Key":"ctrl-a"}
|
|
{"Get":{"state":"0.8ˇ2.46","mode":"Normal"}}
|
|
{"Put":{"state":"0.8ˇ1.46"}}
|
|
{"Key":"ctrl-x"}
|
|
{"Get":{"state":"0.8ˇ0.46","mode":"Normal"}}
|