# Retain selection's head \(as opposed to its end\) on insertion · gitcafe/zed

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

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

Visibility: public

Requested revision: e46d1549d6869bdce7476ee360ae644e91b1298f

Requested commit: e46d1549d6869bdce7476ee360ae644e91b1298f

Commit: e46d1549d6869bdce7476ee360ae644e91b1298f

Tree: 24f36419bb31c9df368fdeee1fac3d131800788e

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Retain selection's head (as opposed to its end) on insertion

This makes a difference when an edit spans two excerpts and the selection
start won't necessarily be the same as the selection end after the edit.

```

## Parents

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

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