# vim: Fix mini delimiters in multibuffer \(\#41834\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 8d15ec7f9944e206e7cc25b5c1b2b15e0db22a6c

Requested commit: 8d15ec7f9944e206e7cc25b5c1b2b15e0db22a6c

Commit: 8d15ec7f9944e206e7cc25b5c1b2b15e0db22a6c

Tree: 7eaf3f19f2d50f0a47b2286fbbe4408a6e590793

Author: Dino

Committer: GitHub

## Message

```
vim: Fix mini delimiters in multibuffer (#41834)

- Update `vim::object::find_mini_delimiters` in order to filter out the
  ranges before calling `vim::object::cover_or_next`, ensuring that the
  provided ranges are converted from multibuffer space into buffer
  space.
- Remove the `range_filter` from `vim::object::cover_or_next` was the
  `find_mini_delimiters` function is the only caller and no longer uses
  it

Closes #41346 

Release Notes:

- Fixed a crash that could occur when using `vim::MiniQuotes` and
`vim::MiniBrackets` in a multibuffer
```

## Parents

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

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