# Replicate pending selections separately from other selections · gitcafe/zed

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

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

Visibility: public

Requested revision: 1e02ebbd11bdb3faede5a92a593e73051ef195b0

Requested commit: 1e02ebbd11bdb3faede5a92a593e73051ef195b0

Commit: 1e02ebbd11bdb3faede5a92a593e73051ef195b0

Tree: fd1e59581bbc2952d59f73c4f6f61ce2a748fb85

Author: Max Brunsfeld

Committer: Max Brunsfeld

## Message

```
Replicate pending selections separately from other selections

This fixes a panic that would occur when a leader created
a pending selection that overlapped another selection,
because the follower would attempt to treat that pending
selection as non-pending, which would violate the invariant
that selections are sorted and disjoint.

```

## Parents

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

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