# go_to_line: Fix goto line \+ mouse click jumps to previous scroll position \(\#26362\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 5f159bc95ed1f52f2bda35fdc897b763d38f1304

Requested commit: 5f159bc95ed1f52f2bda35fdc897b763d38f1304

Commit: 5f159bc95ed1f52f2bda35fdc897b763d38f1304

Tree: a295f582ccad99d389d8d6b1612275233d8c18af

Author: Smit Barmase

Committer: GitHub

## Message

```
go_to_line: Fix goto line + mouse click jumps to previous scroll position (#26362)

Closes #20658

Now, when the "Go to Line" palette is open:  
- Clicking on the editor will dismiss the palette without changing the
scroll position. (PR change)
- Pressing Enter will jump to the line number entered in the palette.
(Unchanged)
- Pressing Escape will jump back to the previous cursor location.
(Unchanged)

Release Notes:

- Fixed an issue where clicking the editor with the mouse while the "Go
to Line" palette is open would cause it to jump to the previous scroll
position.
```

## Parents

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

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