lord
f0c7e62adc
Leave goal_x unchanged when moving by rows past the start or end of the document ( #20705 )
...
Perhaps this was intentional behavior, but if not, I've attempted to
write this hacky fix — I noticed using the vertical arrow keys to move
past the document start/end would reset the goal_x to either zero (for
moving upwards) or the line width (for moving downwards). This change
makes Zed match most native text fields (at least on macOS) which leave
goal_x unchanged, even when hitting the end of the document.
I tested this change manually. Would be happy to add automatic tests for
it too, but couldn't find any existing cursor movement tests.
Release Notes:
- Behavior when moving vertically past the start or end of a document
now matches native text fields; it no longer resets the selection goal
2024-11-18 16:32:43 -07:00
..
2024-11-11 10:18:38 +01:00
2024-11-15 07:37:31 +01:00
2024-11-18 12:44:06 -03:00
2024-11-13 14:34:58 -05:00
2024-11-05 13:37:54 -07:00
2024-11-18 11:43:53 +02:00
2024-11-11 18:39:05 +01:00
2024-11-14 13:16:55 -05:00
2024-11-18 18:20:32 -05:00
2024-11-18 11:43:53 +02:00
2024-11-13 13:55:06 -08:00
2024-11-14 13:03:30 -05:00
2024-11-18 10:30:08 -08:00
2024-11-15 15:01:16 -07:00
2024-11-18 16:32:43 -07:00
2024-11-14 20:44:57 -05:00
2024-11-14 12:44:10 -05:00
2024-11-14 20:44:57 -05:00
2024-11-14 12:09:41 -05:00
2024-11-05 12:07:17 -05:00
2024-11-18 16:32:16 -03:00
2024-11-11 18:39:05 +01:00
2024-11-06 09:43:39 +01:00
2024-11-05 03:49:37 +02:00
2024-11-15 07:37:31 +01:00
2024-11-18 09:36:08 -05:00
2024-11-18 11:43:53 +02:00
2024-11-10 11:37:02 +01:00
2024-11-14 20:44:57 -05:00
2024-11-18 10:55:44 -08:00
2024-11-16 11:18:53 -05:00
2024-11-11 14:35:01 +01:00
2024-11-11 23:04:15 -07:00
2024-11-19 00:05:39 +01:00
2024-11-18 11:43:53 +02:00
2024-11-16 20:23:49 +02:00
2024-11-11 18:39:05 +01:00
2024-11-18 11:43:53 +02:00
2024-11-18 10:30:08 -08:00
2024-11-15 07:37:31 +01:00
2024-11-15 07:37:31 +01:00
2024-11-18 14:38:31 +02:00
2024-11-11 18:39:05 +01:00
2024-11-07 14:36:29 +02:00
2024-11-16 13:20:52 +02:00
2024-11-18 14:30:38 -08:00
2024-11-15 11:48:26 -03:00
2024-11-16 20:23:49 +02:00
2024-11-11 10:19:05 -08:00
2024-11-13 09:36:08 -03:00
2024-11-18 17:17:24 -05:00
2024-11-14 14:37:37 +01:00
2024-11-13 21:02:54 -08:00
2024-11-15 07:37:31 +01:00
2024-11-06 13:18:30 +01:00
2024-11-13 12:45:30 +01:00
2024-11-11 23:04:15 -07:00
2024-11-18 22:56:34 +01:00
2024-11-11 18:39:05 +01:00
2024-11-11 18:39:05 +01:00
2024-11-08 22:53:15 -05:00
2024-11-15 12:58:00 -07:00
2024-11-11 18:39:05 +01:00
2024-11-13 10:42:08 -07:00
2024-11-07 09:17:43 -07:00
2024-11-18 12:44:49 -03:00
2024-11-18 11:43:53 +02:00
2024-11-11 14:35:01 +01:00
2024-11-18 12:44:49 -03:00
2024-11-11 12:58:39 -05:00
2024-11-15 12:25:18 -05:00
2024-11-14 23:44:40 -07:00
2024-11-14 08:25:48 -05:00
2024-11-18 11:43:53 +02:00
2024-11-18 10:30:08 -08:00
2024-11-13 11:47:52 -05:00