# Keep folds at cursor open for "fold at level" \(\#39396\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9aeb617a89b1b8128eeb261bb62d47057b9f99e0

Requested commit: 9aeb617a89b1b8128eeb261bb62d47057b9f99e0

Commit: 9aeb617a89b1b8128eeb261bb62d47057b9f99e0

Tree: 6a6183f155f9f1accc88d3cd0bf694d69fac89d6

Author: Andrew Farkas

Committer: GitHub

## Message

```
Keep folds at cursor open for "fold at level" (#39396)

Closes #39308

Also fixes a possible bug in `apply_selected_diff_hunks()` caused by
reversed selections.

Release Notes:

- Fixed "editor: fold at level" closing regions containing selections

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
```

## Parents

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

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