# editor: Apply \`common_prefix_len\` refactor suggestion \(\#31957\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b9256dd469c093266a4e1f4368ad1039ba4c5be1

Requested commit: b9256dd469c093266a4e1f4368ad1039ba4c5be1

Commit: b9256dd469c093266a4e1f4368ad1039ba4c5be1

Tree: a048f84d3d6481527ca6927b3625092214e81b27

Author: Gilles Peiffer

Committer: GitHub

## Message

```
editor: Apply `common_prefix_len` refactor suggestion (#31957)

This adds João's nice suggestion from
https://github.com/zed-industries/zed/pull/31818#discussion_r2118582616.

Release Notes:

- N/A

---------

Co-authored-by: João Marcos <marcospb19@hotmail.com>
```

## Parents

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

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