# text_finder: Open match on the right column \(\#59840\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 99c3d17da661818e8c2e66f97da2109d886e6165

Requested commit: 99c3d17da661818e8c2e66f97da2109d886e6165

Commit: 99c3d17da661818e8c2e66f97da2109d886e6165

Tree: 7f666fa890b346176cd1f8a48a64935dd608e887

Author: ozacod

Committer: GitHub

## Message

```
text_finder: Open match on the right column (#59840)

## Summary

When opening a result from the text finder navigate to the exact match
position the same way project search already does. Previously the text
finder opened the file at the start of the matched line, while project
search lands the cursor on the start of the match (correct line and
column).

## Solution
  
`go_to_singleton_buffer_point` now uses
`SearchMatch::relative_range.start `as the column instead of 0.

## Testing

- Manual: search in the text finder → open a result whose match starts
mid-line → cursor lands on the start of the match. Verified for both
opening in the current pane and opening in a split.

Release Notes:

- Improved text finder to open files at the matched column

Co-authored-by: ozacod <ozacod@users.noreply.github.com>
```

## Parents

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

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