# display map: Fix left shift debug panic \(\#38656\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d44437d5436297efb448d150cf4723b8322e9e06

Requested commit: d44437d5436297efb448d150cf4723b8322e9e06

Commit: d44437d5436297efb448d150cf4723b8322e9e06

Tree: 077034331c2d16c703bbd02e8df36c3cef4e18eb

Author: Anthony Eid

Committer: GitHub

## Message

```
display map: Fix left shift debug panic (#38656)

Closes https://github.com/zed-industries/zed/issues/38558

The bug occurred because TabStopCursor chunk_position.1 is bounded
between 0 and 128. The fix for this was changing the bound to 0 and 127.

This also allowed me to simplify some of the tab stop cursor code to be
a bit faster (less branches and unbounded shifts).

Release Notes:

- N/A
```

## Parents

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

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