Francisco Fernandes
a07ba3c718
editor: Fix inconsistent SelectPrevious behavior ( #27695 )
...
When starting a selection from only carets, the action
`editor::SelectPrevious` behaved in a manner inconsistent with
`editor::SelectNext` as well as equivalent keybinds in editors such as
VSCode, by selecting substrings of whole words matching the initially
selected string on subsequent triggers.
This fix brings the `select_previous` function in line with
`select_next_internal`by calling `select_match_ranges` (previously an
internal function of `select_next_internal`) in the same way it was
previously used in the function that exhibited expected behavior.
Furthermore, the relevant test was adapted to bring it in line with the
equivalent test for the `editor::SelectNext` action
Closes #24346
Release Notes:
- Fixed inconsistent SelectPrevious behavior
2025-05-06 09:37:58 +03:00
..
2025-04-07 18:10:01 +00:00
2025-05-05 22:28:35 -03:00
2025-04-24 15:17:33 +00:00
2025-05-01 19:24:14 +00:00
2025-05-06 00:21:22 +00:00
2025-05-06 01:02:56 +00:00
2025-05-06 01:02:56 +00:00
2025-05-06 04:38:03 +00:00
2025-05-05 13:13:36 +00:00
2025-05-06 00:47:11 +02:00
2025-04-23 20:54:09 +00:00
2025-04-15 09:35:13 -06:00
2025-04-28 09:21:27 +00:00
2025-04-29 12:18:32 -04:00
2025-04-07 20:26:55 +00:00
2025-04-10 22:58:41 +00:00
2025-04-23 20:54:09 +00:00
2025-04-11 17:38:14 +00:00
2025-05-05 18:46:54 -04:00
2025-05-04 08:28:39 +00:00
2025-05-05 21:36:12 +02:00
2025-05-04 08:28:39 +00:00
2025-04-28 22:15:24 +00:00
2025-05-06 03:41:52 +00:00
2025-05-06 03:41:52 +00:00
2025-05-05 21:36:12 +02:00
2025-05-05 08:21:45 -04:00
2025-05-05 21:27:20 +00:00
2025-04-26 01:44:56 +02:00
2025-04-28 22:15:24 +00:00
2025-05-05 20:08:14 +00:00
2025-05-05 21:27:20 +00:00
2025-04-19 23:26:29 +00:00
2025-05-02 12:10:01 +00:00
2025-05-06 09:37:58 +03:00
2025-05-05 15:57:03 -04:00
2025-05-05 21:36:12 +02:00
2025-05-02 15:58:54 +00:00
2025-05-05 21:36:12 +02:00
2025-05-05 11:46:42 +00:00
2025-05-03 20:16:25 +00:00
2025-04-15 21:36:30 -04:00
2025-05-02 15:02:53 +00:00
2025-05-01 21:24:26 -04:00
2025-05-02 15:02:53 +00:00
2025-05-01 21:24:26 -04:00
2025-04-23 20:54:09 +00:00
2025-05-05 22:28:35 -03:00
2025-04-23 20:54:09 +00:00
2025-05-04 21:32:45 +00:00
2025-05-06 07:17:39 +03:00
2025-04-20 00:53:30 +00:00
2025-04-28 11:12:16 -04:00
2025-05-04 20:21:30 -03:00
2025-05-04 08:28:39 +00:00
2025-04-10 21:16:43 +00:00
2025-04-18 14:15:19 +00:00
2025-05-05 23:05:47 +00:00
2025-04-11 01:47:40 +05:30
2025-04-23 20:54:09 +00:00
2025-05-06 01:02:56 +00:00
2025-05-04 17:37:42 +00:00
2025-05-06 01:02:56 +00:00
2025-05-05 22:04:56 -07:00
2025-04-28 09:21:27 +00:00
2025-05-05 23:50:57 +03:00
2025-04-08 16:01:27 +00:00
2025-05-05 08:21:45 -04:00
2025-04-30 02:13:13 +00:00
2025-04-29 19:30:16 +00:00
2025-04-07 18:46:09 +00:00
2025-04-29 21:58:45 -03:00
2025-05-06 01:02:56 +00:00
2025-04-19 23:29:36 +00:00
2025-05-02 17:57:16 -03:00
2025-04-28 11:12:16 -04:00
2025-04-08 16:09:06 -06:00
2025-05-05 17:52:23 +00:00
2025-04-24 14:55:37 +00:00
2025-04-23 12:38:46 -04:00
2025-05-02 01:26:12 +00:00
2025-04-23 20:54:09 +00:00
2025-05-02 08:38:29 +00:00
2025-05-05 21:32:00 +01:00
2025-05-04 08:28:39 +00:00
2025-05-01 16:11:13 -04:00
2025-05-05 11:48:31 -04:00
2025-05-05 08:46:49 +00:00
2025-04-22 21:32:32 +00:00
2025-05-01 21:24:26 -04:00
2025-05-04 08:28:39 +00:00
2025-05-01 19:24:14 +00:00
2025-04-03 23:32:50 +02:00
2025-04-16 20:22:44 +00:00
2025-04-28 16:50:47 +00:00
2025-05-05 09:35:48 +03:00
2025-04-28 16:50:47 +00:00
2025-04-25 17:41:49 +03:00
2025-04-27 19:04:51 +00:00
2025-04-28 09:21:27 +00:00
2025-04-18 12:11:54 +00:00
2025-04-28 22:15:24 +00:00
2025-04-08 16:09:06 -06:00
2025-05-01 17:37:43 +02:00
2025-04-28 09:21:27 +00:00
2025-05-05 20:08:14 +00:00
2025-05-02 08:38:29 +00:00
2025-04-21 21:30:21 -07:00
2025-05-05 18:50:53 +00:00
2025-05-05 18:50:53 +00:00
2025-04-09 01:53:54 +00:00
2025-05-05 16:13:14 -06:00
2025-04-23 14:06:58 +00:00
2025-04-28 14:29:17 +00:00
2025-05-01 21:24:26 -04:00
2025-04-16 19:05:57 +02:00
2025-05-06 03:41:52 +00:00
2025-04-08 16:09:06 -06:00
2025-04-08 16:09:06 -06:00
2025-04-07 19:03:24 +00:00
2025-04-29 16:06:43 +00:00
2025-05-01 19:24:14 +00:00
2025-05-06 01:02:56 +00:00
2025-04-23 20:54:09 +00:00
2025-04-23 15:30:20 +00:00
2025-05-06 00:47:11 +02:00
2025-04-30 17:46:11 +00:00
2025-05-05 22:28:35 -03:00
2025-04-25 20:06:40 +00:00
2025-05-05 22:28:35 -03:00
2025-05-06 01:02:56 +00:00
2025-04-27 02:31:25 +00:00
2025-05-01 10:59:51 -04:00
2025-04-23 20:54:09 +00:00