# Fix panic in \`WrapMap::highlighted_chunks_for_rows\` · gitcafe/zed

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

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

Visibility: public

Requested revision: f7c886499521d06cdd444011d265c2973e5c0a21

Requested commit: f7c886499521d06cdd444011d265c2973e5c0a21

Commit: f7c886499521d06cdd444011d265c2973e5c0a21

Tree: 0fd07854f8e8df43d09cdf5d026ebde2d667ced5

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Fix panic in `WrapMap::highlighted_chunks_for_rows`

Also, add a unit test for `DisplayMap` with syntax highlighting when
soft wrap is on.

```

## Parents

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

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