Dylan and Conrad Irwin
bb53ad9862
Only allow save_as for pane if can_save_as is true ( #25028 )
...
When saving an item, some logic is done to determine whether one can
save it. In the special case where the intent is to `SaveAs`, it was
previously allowed to proceed as long as the buffer was a singleton
(presumably since it only makes sense to provide a save path for a
single file). However, we need to _also_ check that this item can be
"saved as" at all.
For this, we resurrect the `ItemHandle`/`Item` trait method
`can_save_as`. We have given it the default implementation of returning
`false`, and then overridden this in the implementation for
`TerminalView`.
Closes #25023
Release Notes:
- Fixed crash when trying to save terminal buffer
---------
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com >
2025-02-17 16:01:56 -07:00
..
2025-01-27 04:00:27 +00:00
2025-02-01 06:19:29 +00:00
2025-01-26 03:02:45 +00:00
2025-02-17 16:29:42 -03:00
2025-02-14 22:03:59 -07:00
2025-02-17 16:29:42 -03:00
2025-02-01 06:19:29 +00:00
2025-01-26 03:02:45 +00:00
2025-02-05 14:30:09 +00:00
2025-01-26 03:02:45 +00:00
2025-01-26 03:02:45 +00:00
2025-01-26 03:02:45 +00:00
2025-01-26 23:37:34 +00:00
2025-02-17 11:32:04 -03:00
2025-01-27 04:00:27 +00:00
2025-02-12 19:46:42 +00:00
2025-01-31 23:25:58 +00:00
2025-02-04 10:24:35 -08:00
2025-02-06 02:09:24 -07:00
2025-02-12 07:32:17 -08:00
2025-01-17 17:39:22 +01:00
2025-02-16 20:24:12 +00:00
2025-02-14 22:03:59 -07:00
2025-01-17 17:39:22 +01:00
2025-02-14 22:03:59 -07:00
2025-02-11 04:55:40 +00:00
2025-02-14 15:41:49 +01:00
2025-02-11 20:16:59 +00:00
2025-01-26 23:37:34 +00:00
2025-01-26 03:02:45 +00:00
2025-02-17 19:25:38 +00:00
2025-01-26 03:02:45 +00:00
2025-01-27 13:40:59 -05:00
2025-02-07 12:33:35 +01:00
2025-01-26 03:02:45 +00:00
2025-02-17 16:01:56 -07:00
2025-01-26 23:37:34 +00:00
2025-02-07 11:30:53 -05:00
2025-01-17 17:39:22 +01:00
2025-02-05 18:17:19 +00:00
2025-02-14 15:41:49 +01:00
2025-02-06 00:09:37 +00:00
2025-02-13 21:48:09 +00:00
2025-02-10 20:57:25 +00:00
2025-02-14 22:03:59 -07:00
2025-02-15 00:35:13 +00:00
2025-02-04 15:29:10 -05:00
2025-01-30 23:53:36 -07:00
2025-02-05 14:30:09 +00:00
2025-02-14 14:04:32 -07:00
2025-02-12 15:57:08 -07:00
2025-02-14 14:04:32 -07:00
2025-02-14 15:41:49 +01:00
2025-02-07 11:18:18 -05:00
2025-02-17 12:43:28 -07:00
2025-02-05 14:30:09 +00:00
2025-01-31 02:00:55 +00:00
2025-01-26 03:02:45 +00:00
2025-02-12 07:32:17 -08:00
2025-02-11 20:16:59 +00:00
2025-01-26 03:02:45 +00:00
2025-02-10 22:28:56 -03:00
2025-02-12 16:23:23 +00:00
2025-01-26 23:37:34 +00:00
2025-01-26 03:02:45 +00:00
2025-02-14 15:44:45 +01:00
2025-01-26 23:37:34 +00:00
2025-02-14 13:07:41 -05:00
2025-02-17 17:12:46 -03:00
2025-02-17 19:25:38 +00:00
2025-01-28 19:04:21 -05:00
2025-02-14 22:03:59 -07:00
2025-02-17 14:55:48 -07:00
2025-02-16 20:24:12 +00:00
2025-02-16 20:24:12 +00:00
2025-02-16 20:24:12 +00:00
2025-01-31 22:28:11 +00:00
2025-02-14 15:41:49 +01:00
2025-02-06 18:37:50 -08:00
2025-02-03 16:38:45 +00:00
2025-01-17 17:39:22 +01:00
2025-01-17 17:39:22 +01:00
2025-02-15 01:33:30 +05:30
2025-02-14 13:07:41 -05:00
2025-02-15 18:18:32 +00:00
2025-01-30 08:56:02 -08:00
2025-01-27 04:00:27 +00:00
2025-01-26 03:02:45 +00:00
2025-02-05 16:45:38 -05:00
2025-02-14 15:41:49 +01:00
2025-02-15 00:35:13 +00:00
2025-02-10 15:52:09 +00:00
2025-02-09 16:51:37 -07:00
2025-02-17 19:18:12 -03:00
2025-02-14 15:41:49 +01:00
2025-02-15 18:29:45 +00:00
2025-02-14 22:03:59 -07:00
2025-02-05 14:30:09 +00:00
2025-02-14 22:03:59 -07:00
2025-02-14 14:04:32 -07:00
2025-02-14 22:03:59 -07:00
2025-02-05 14:30:09 +00:00
2025-02-01 06:19:29 +00:00
2025-02-14 14:52:24 -07:00
2025-02-12 20:55:22 -07:00
2025-02-17 12:55:06 +00:00
2025-02-17 11:42:22 -05:00
2025-01-26 03:02:45 +00:00
2025-02-04 15:29:10 -05:00
2025-02-06 00:09:37 +00:00
2025-01-31 01:22:10 +00:00
2025-02-17 09:15:43 +00:00
2025-02-10 10:52:27 -08:00
2025-01-17 17:39:22 +01:00
2025-01-26 03:02:45 +00:00
2025-02-12 06:47:08 +05:30
2025-01-26 03:02:45 +00:00
2025-01-26 03:02:45 +00:00
2025-01-28 10:37:48 +01:00
2025-01-27 04:00:27 +00:00
2025-01-26 03:02:45 +00:00
2025-02-05 14:30:09 +00:00
2025-01-26 03:02:45 +00:00
2025-02-11 20:16:59 +00:00
2025-01-17 17:39:22 +01:00
2025-02-12 19:46:42 +00:00
2025-02-07 22:06:37 +00:00
2025-01-26 03:02:45 +00:00
2025-02-14 15:41:49 +01:00
2025-01-26 03:02:45 +00:00
2025-02-14 22:03:59 -07:00
2025-01-17 17:39:22 +01:00
2025-02-06 02:09:24 -07:00
2025-02-01 06:19:29 +00:00
2025-02-17 16:01:56 -07:00
2025-01-27 18:11:15 -08:00
2025-02-15 02:04:35 +00:00
2025-02-07 11:30:53 -05:00
2025-01-31 01:22:10 +00:00
2025-02-11 23:45:37 +00:00
2025-02-12 15:57:08 -07:00
2025-02-12 15:57:08 -07:00
2025-01-27 04:00:27 +00:00
2025-02-17 10:17:22 -07:00
2025-01-26 03:02:45 +00:00
2025-02-09 13:25:03 -05:00
2025-02-12 14:46:42 -08:00
2025-02-05 14:30:09 +00:00
2025-02-17 14:55:48 -07:00
2025-01-26 03:02:45 +00:00
2025-02-14 10:28:07 -05:00
2025-02-17 16:01:56 -07:00
2025-02-15 18:29:45 +00:00
2025-02-17 09:15:43 +00:00
2025-02-14 13:27:48 +02:00
2025-02-14 22:03:59 -07:00