kerty
82c4896809
Fix unnecessary undo when exiting the history pager with an empty cmd and no matches
...
Currently, when the history pager is selected, fish always one undo away from the original search term. If the search has no matches, the fish replaces the search term with itself (resulting in no visible change, but it is still treated as a transient edit). However, fish ignores undo operations where the replacement is "" by "", leading to an unnecessary undo. For example:
1. Type 'test'.
2. Do ctrl-c.
3. Open the history pager.
4. Make so there are no matches.
5. Exit - you will undo back to 'test'.
This commit also ensures that if you select a pager element that does not change the content of the commandline, it will not be added to the undo history.
2025-02-04 10:12:30 +01:00
..
2025-01-17 10:03:19 +01:00
2025-01-26 20:30:48 -08:00
2025-01-31 16:44:25 +01:00
2024-12-04 20:18:16 +01:00
2025-02-03 15:55:55 -08:00
2025-01-26 20:30:48 -08:00
2025-01-31 13:37:27 +01:00
2024-08-26 17:10:26 -05:00
2024-09-24 17:00:13 +02:00
2025-01-26 20:30:48 -08:00
2025-01-26 20:30:48 -08:00
2025-01-19 18:57:21 +01:00
2024-05-06 14:59:36 -05:00
2024-11-30 12:21:30 -08:00
2025-01-19 18:34:59 +01:00
2025-01-31 13:37:27 +01:00
2025-01-06 06:24:13 +01:00
2025-01-01 17:22:50 +01:00
2025-01-31 16:31:39 +01:00
2025-01-04 19:49:44 -06:00
2025-01-04 19:49:44 -06:00
2025-01-26 20:30:48 -08:00
2025-01-19 18:34:59 +01:00
2024-11-22 21:35:39 -06:00
2025-01-11 18:58:49 +01:00
2025-01-04 18:40:36 -06:00
2025-01-03 19:34:57 +01:00
2024-10-09 14:51:54 +02:00
2025-01-04 19:49:44 -06:00
2025-01-26 20:30:48 -08:00
2024-04-29 22:00:59 +02:00
2024-03-09 10:09:03 +01:00
2025-01-29 10:16:19 +01:00
2025-02-01 09:25:53 +01:00
2025-02-01 09:25:53 +01:00
2024-12-27 14:36:55 -08:00
2024-11-14 13:24:55 -06:00
2025-01-27 21:49:29 +01:00
2024-01-13 08:52:54 +01:00
2024-09-21 17:52:11 -07:00
2025-01-02 11:06:29 +08:00
2025-01-02 11:06:29 +08:00
2024-06-23 17:13:14 -07:00
2025-01-21 17:31:15 +01:00
2024-06-29 18:03:52 -07:00
2025-01-26 14:19:40 +01:00
2025-01-31 11:25:56 -06:00
2025-01-30 16:22:07 +01:00
2024-11-11 16:45:13 -06:00
2025-01-19 18:57:13 +01:00
2025-02-03 15:55:55 -08:00
2025-01-19 18:57:13 +01:00
2025-01-23 17:09:29 +01:00
2025-01-19 18:57:13 +01:00
2024-12-27 16:42:38 -08:00
2024-12-28 12:13:48 -08:00
2024-11-17 17:03:34 -08:00
2025-01-26 20:30:48 -08:00
2024-01-13 03:58:33 +01:00
2025-02-04 10:12:30 +01:00
2025-02-04 10:12:30 +01:00
2025-01-12 15:10:11 -08:00
2025-01-31 13:37:27 +01:00
2025-01-04 19:49:44 -06:00
2024-06-29 18:03:52 -07:00
2025-01-26 20:30:48 -08:00
2025-01-02 23:40:41 +01:00
2024-09-18 22:27:00 +02:00
2025-01-19 18:57:21 +01:00
2025-01-26 20:30:48 -08:00
2024-06-02 20:27:44 -05:00
2024-10-13 12:39:54 -07:00
2024-11-14 13:02:03 -06:00
2024-12-14 09:31:20 +01:00
2024-09-21 17:52:11 -07:00
2025-01-01 17:22:50 +01:00
2024-04-17 12:41:16 -07:00
2024-11-24 16:11:57 +01:00