# vim: Remap cursor position with \`display_point\` \(\#60755\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/a12ed0fbaf3726976cc196c0697ddaf2439bf8b4)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: a12ed0fbaf3726976cc196c0697ddaf2439bf8b4

Requested commit: a12ed0fbaf3726976cc196c0697ddaf2439bf8b4

Commit: a12ed0fbaf3726976cc196c0697ddaf2439bf8b4

Tree: 2d1691e4028725733a2a9c3baa07ff399e9702e5

Author: HuaGu-Dragon

Committer: GitHub

## Message

```
vim: Remap cursor position with `display_point` (#60755)

# Objective

- Fixes #53650
- Possibly also fixes #57956 (needs confirmation)

## Solution

- Replace the direct `DisplayPoint::new(row, col)` construction with a
proper buffer-point-to-display-point
- This goes through the full inlay → fold → tab → wrap → block pipeline
and correctly accounts for any inlay hints on the target line.

## Testing

- Added a regression test for multi-cursors with inlay hints in helix
mode

## 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 adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- Fixed `Shift+C cursor` position with inlay hints in helix mode
```

## Parents

- [89e8a4b9ec7e0fa8a49987a3c1dbf29343dc6999](https://git.cafe/gitcafe/zed/commit/89e8a4b9ec7e0fa8a49987a3c1dbf29343dc6999?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/a12ed0fbaf3726976cc196c0697ddaf2439bf8b4?format=markdown)
