mirror of
https://github.com/zed-industries/zed.git
synced 2026-12-04 06:33:21 +01:00
When I am in the middle of editing, pressing Ctrl would counter-intuitively highlight links even when the mouse cursor is hidden. This change considers the state of the mouse cursor before painting links on hover. Before: Modifier pressed, cursor hidden, link visible <img width="506" height="518" alt="image" src="https://github.com/user-attachments/assets/82a59e83-e3cb-490f-b292-148686ec569d" /> After: Modifier pressed, cursor hidden (red dot indicates current cursor position) <img width="408" height="298" alt="image" src="https://github.com/user-attachments/assets/c19ed83c-4778-4890-97b9-5155cdcf658b" /> Before you mark this PR as ready for review, make sure that you have: - [x] Added a solid test coverage and/or screenshots from doing manual testing - [x] Done a self-review taking into account security and performance aspects - [x] Aligned any UI changes with the [UI checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) Release Notes: - Fixed spurious link highlighting when mouse cursor is hidden Fixes #50776