mirror of
https://github.com/zed-industries/zed.git
synced 2026-08-23 07:55:20 +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>
9 lines
297 B
JSON
9 lines
297 B
JSON
{"Put":{"state":"2025-0ˇ5-10"}}
|
|
{"Key":"ctrl-a"}
|
|
{"Get":{"state":"2025-0ˇ4-10","mode":"Normal"}}
|
|
{"Put":{"state":"2025-05ˇ-"}}
|
|
{"Key":"ctrl-a"}
|
|
{"Get":{"state":"2025-05ˇ-","mode":"Normal"}}
|
|
{"Put":{"state":"2025-05ˇ- 345"}}
|
|
{"Key":"ctrl-a"}
|
|
{"Get":{"state":"2025-05- 34ˇ6","mode":"Normal"}}
|