# vim: Adjust surrounding_markers method \(\#14752\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d0446857069293c45555b0102ea9d9ebe657cfb7

Requested commit: d0446857069293c45555b0102ea9d9ebe657cfb7

Commit: d0446857069293c45555b0102ea9d9ebe657cfb7

Tree: cbb0dfd3b7739c21fdad30b750529c3ceeb1e91c

Author: Hans

Committer: GitHub

## Message

```
vim: Adjust surrounding_markers method (#14752)

At present, when calculating some ranges, we take the `tuple_windows` to
iterate forward, which will cause some problems when the cursor is being
front, because `tuple_windows` iteration cannot iterate to the very
beginning, so there will be some cases that cannot be calculated, adjust
this method, and now it can calculate more perfectly, and the execution
speed is about the same

Release Notes:

- N/A
```

## Parents

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

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