# Fix wrong selection in outline panel \(\#52673\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9649a72e2500e8e1973b700dad25dd6fbc74f9b1

Requested commit: 9649a72e2500e8e1973b700dad25dd6fbc74f9b1

Commit: 9649a72e2500e8e1973b700dad25dd6fbc74f9b1

Tree: c587098f4777a5ed3a5cea090c11961ac84956ba

Author: Om Chillure

Committer: GitHub

## Message

```
Fix wrong selection in outline panel (#52673)

Fix the outline entry sort order to prefer the entry whose heading
starts at the cursor position.

Closes #52418

Release Notes:

- Fixed Outline Panel selection being off-by-one in Markdown heading boundaries

---------

Co-authored-by: dino <dinojoaocosta@gmail.com>
```

## Parents

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

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