# editor: Fix MoveToEnclosingBracket and unmatched forward/backward Vim motions in Markdown code blocks \(\#42813\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 1683052e6ce44d206e947c397917b2ab7617c0fe

Requested commit: 1683052e6ce44d206e947c397917b2ab7617c0fe

Commit: 1683052e6ce44d206e947c397917b2ab7617c0fe

Tree: 9d456453c21abe3bb88609fdacd9716083a6b04c

Author: Smit Barmase

Committer: GitHub

## Message

```
editor: Fix MoveToEnclosingBracket and unmatched forward/backward Vim motions in Markdown code blocks (#42813)

We now correctly use bracket ranges from the deepest syntax layer when
finding enclosing brackets.

Release Notes:

- Fixed an issue where `MoveToEnclosingBracket` didn’t work correctly
inside Markdown code blocks.
- Fixed an issue where unmatched forward/backward Vim motions didn’t
work correctly inside Markdown code blocks.

---------

Co-authored-by: MuskanPaliwal <muskan10112002@gmail.com>
```

## Parents

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

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