Hourann and Peter Tripp
e7a0f0e876
terminal: Fix misaligned mouse selection when inline assist is active ( #26112 )
...
This PR fixes an issue where mouse selection in the terminal would be
offset when the Terminal Inline Assistant was active. The problem was
caused by incorrect coordinate translation when handling mouse events
with an active inline assistant.
The fix adjusts mouse event coordinates by properly accounting for the
terminal view's `scroll_top` value when the inline assistant is present,
ensuring that text selection precisely follows the mouse cursor
position.
Closes #26111
Release Notes:
- Fixed text selection misalignment in terminal when the inline
assistant is active
Co-authored-by: Peter Tripp <peter@zed.dev >
2025-04-07 20:10:14 +00:00
..
2025-04-07 18:10:01 +00:00
2025-04-07 19:03:24 +00:00
2025-04-07 13:28:06 -05:00
2025-04-04 17:09:00 +00:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-05 17:10:39 +00:00
2025-04-07 10:35:11 -06:00
2025-04-04 11:40:55 -03:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-04 11:20:18 +00:00
2025-04-05 18:52:52 -04:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-05 11:16:26 -04:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-04 19:28:32 -04:00
2025-04-02 13:26:34 -07:00
2025-04-07 18:10:01 +00:00
2025-04-07 10:35:11 -06:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-05 16:06:14 -04:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-03 16:11:14 +00:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-07 10:35:11 -06:00
2025-04-02 13:26:34 -07:00
2025-04-04 17:37:42 -06:00
2025-04-02 13:26:34 -07:00
2025-04-07 19:03:24 +00:00
2025-04-02 13:26:34 -07:00
2025-04-05 13:20:36 -04:00
2025-03-31 20:55:27 +02:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-05 05:01:56 +05:30
2025-04-02 13:26:34 -07:00
2025-04-07 18:46:09 +00:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-03 23:32:50 +02:00
2025-04-02 13:26:34 -07:00
2025-04-07 19:03:24 +00:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-07 18:46:09 +00:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-03 16:11:14 +00:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-05 05:14:15 +05:30
2025-04-02 13:26:34 -07:00
2025-04-04 19:28:32 -04:00
2025-04-05 16:32:16 +00:00
2025-04-05 11:16:26 -04:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-06 11:14:05 -04:00
2025-04-02 13:26:34 -07:00
2025-04-07 18:46:09 +00:00
2025-04-02 13:26:34 -07:00
2025-04-07 10:35:11 -06:00
2025-04-07 19:03:24 +00:00
2025-04-02 13:26:34 -07:00
2025-04-07 18:46:09 +00:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-04 17:37:42 -06:00
2025-04-07 15:47:04 -04:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-03 22:07:37 +00:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-07 18:10:01 +00:00
2025-04-07 17:47:54 +05:30
2025-04-02 13:26:34 -07:00
2025-04-04 11:40:55 -03:00
2025-04-07 12:11:14 -04:00
2025-04-04 16:15:49 -07:00
2025-04-07 19:03:24 +00:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-07 18:10:01 +00:00
2025-04-04 17:37:42 -06:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-03 23:32:50 +02:00
2025-04-04 16:15:49 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 22:57:40 +00:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-04 14:20:09 +00:00
2025-04-04 14:20:09 +00:00
2025-04-02 13:26:34 -07:00
2025-04-04 19:28:32 -04:00
2025-04-02 13:26:34 -07:00
2025-04-07 20:10:14 +00:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-06 11:25:29 -06:00
2025-04-02 13:26:34 -07:00
2025-04-03 16:11:14 +00:00
2025-04-03 16:00:43 -03:00
2025-04-02 13:26:34 -07:00
2025-04-07 19:03:24 +00:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-05 19:52:56 +00:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-06 11:25:29 -06:00
2025-04-07 18:41:58 +00:00
2025-04-03 23:32:50 +02:00
2025-04-05 17:10:39 +00:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00