# editor: Fix sometimes green \(\+\) cursor style appearing when cmd-clicking in same buffer \(\#34638\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0f72d7ed52bad0c8f6a5e504a2adf9670d726814

Requested commit: 0f72d7ed52bad0c8f6a5e504a2adf9670d726814

Commit: 0f72d7ed52bad0c8f6a5e504a2adf9670d726814

Tree: f39d8127ceb4381a1cb454618aac2d73e08e7bbf

Author: Smit Barmase

Committer: GitHub

## Message

```
editor: Fix sometimes green (+) cursor style appearing when cmd-clicking in same buffer (#34638)

Follow-up for https://github.com/zed-industries/zed/pull/34557

This PR clears the selection drag state on click, because mouse up
doesn't trigger on click event because of `cx.stop_propagation`. The
issue occurs with similar repro steps as mentioned in the attached PR.

Release Notes:

- Fixed the issue where the green (+) cursor style sometimes appears
when navigating to the definition in buffer.
```

## Parents

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

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