# Fix handling of selection ranges for format selections in multibuffer \(\#22929\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 685dd77d97ea7e6c17efa55cfd256c0c791e89d5

Requested commit: 685dd77d97ea7e6c17efa55cfd256c0c791e89d5

Commit: 685dd77d97ea7e6c17efa55cfd256c0c791e89d5

Tree: 5e00cfb0291f2a4b73ff581b31a1591ef2bf2890

Author: Michael Sloan

Committer: GitHub

## Message

```
Fix handling of selection ranges for format selections in multibuffer (#22929)

Before this change it was using the same multibuffer point ranges in
every buffer, which only worked correctly for singleton buffers.

Release Notes:

- Fixed handling of selection ranges when formatting selections within a
multibuffer.

---------

Co-authored-by: Thorsten Ball <mrnugget@gmail.com>
```

## Parents

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

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