# Fix the display point out of range panic due to wrong coordinate space used \(\#62055\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 90d024b88abc91264d9a0ad260eb4f365fa695c3

Requested commit: 90d024b88abc91264d9a0ad260eb4f365fa695c3

Commit: 90d024b88abc91264d9a0ad260eb4f365fa695c3

Tree: 30be760c1c6ae8894862c1d386a5d1b7bed6c4b9

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Fix the display point out of range panic due to wrong coordinate space used (#62055)

Closes ZED-AKV
Closes ZED-ANB

Follow-up to https://github.com/zed-industries/zed/pull/61153

The original PR mixed up the coordinate spaces, and the newly added
methods used buffer rows (as the existing code did before that PR), but
the new code uses `FoldMap` which expects a tab row instead of the
buffer one.

Release Notes:

- Fixed a panic when selections are added by tab-expanded column
```

## Parents

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

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