# Fix find\_\{,preceding\}boundary to work on buffer text \(\#2912\) · gitcafe/zed

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

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

Visibility: public

Requested revision: da16167db159c86d605eaf3a1ea0639c7d3deedd

Requested commit: da16167db159c86d605eaf3a1ea0639c7d3deedd

Commit: da16167db159c86d605eaf3a1ea0639c7d3deedd

Tree: a035321738e80b8547dd517ce558981a7ed8e96c

Author: Conrad Irwin

Committer: GitHub

## Message

```
Fix find_{,preceding}boundary to work on buffer text (#2912)

Fixes movement::find_boundary to work on the buffer, not on display
points.

The user-visible impact is that the "until end of word" commands now
correctly go to the end of a soft-wrapped word (instead of to the first
character of the wrapped line).

It also fixes a bug where the callback passed to these methods was
called with the content of inlay hints.

[[PR Description]]

Release Notes:

- fix finding end of word on soft-wrapped lines
```

## Parents

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

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

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