# sweep: Set \`use_bytes\` flag \(\#43687\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 77656a4091c4d78a3c0ff6c66bf9e29d48c9c6c1

Requested commit: 77656a4091c4d78a3c0ff6c66bf9e29d48c9c6c1

Commit: 77656a4091c4d78a3c0ff6c66bf9e29d48c9c6c1

Tree: c33e25106720c137a47eedd0181a072208f4a5c0

Author: Agus Zubiaga

Committer: GitHub

## Message

```
sweep: Set `use_bytes` flag (#43687)

Without this new flag, the Sweep API will actually produce a combination
of UTF-16 and char indices, leading to incorrect edit positions.

Release Notes:

- N/A
```

## Parents

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

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