zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
49.71k stars 3.05k forks source link

dismissing buffer search can change cursor position #8048

Open hferreiro opened 8 months ago

hferreiro commented 8 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

  1. Search for an existing text on the current buffer.
  2. Press esc to dismiss the search dialog.
  3. The cursor position changes to the first match.

I'd expect the cursor position to not change.

Environment

Zed: v0.122.2 (Zed) OS: macOS 14.3.1 Memory: 32 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.

No response

github-actions[bot] commented 1 month ago

Hi there! 👋 We're working to clean up our issue tracker by closing older issues that might not be relevant anymore. Are you able to reproduce this issue in the latest version of Zed? If so, please let us know by commenting on this issue and we will keep it open; otherwise, we'll close it in a week. Feel free to open a new issue if you're seeing this message after the issue has been closed. Thanks for your help!

hferreiro commented 1 month ago

Still an issue. Note that this might be the reason for https://github.com/zed-industries/zed/issues/8049.