# Fix adding breakpoint/bookmark via gutter context menu using the wrong row \(\#59269\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e9c484165dc80b366792bea748e4546d47f4011a

Requested commit: e9c484165dc80b366792bea748e4546d47f4011a

Commit: e9c484165dc80b366792bea748e4546d47f4011a

Tree: 94d27d83f057beedb08f849ec8295c439e73d452

Author: guopenghui

Committer: GitHub

## Message

```
Fix adding breakpoint/bookmark via gutter context menu using the wrong row (#59269)

# Objective

Fixes #59265

## Solution

Use `display_point_to_anchor` to properly convert `DisplayRow` to
`Anchor`, instead of manually constructing `Point` directly as done
currently.

## Testing

- Tested manually, see video in issue
- Tested on windows

## 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)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

## Showcase


<details>
  <summary>Click to view showcase</summary>

My super cool demos here

</details>

---

Release Notes:

- Fixed the gutter context menu adding breakpoints/bookmarks to the
wrong row in multibuffers.

---------

Co-authored-by: dino <dinojoaocosta@gmail.com>
```

## Parents

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

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