mirror of
https://github.com/wez/wezterm.git
synced 2024-11-30 06:03:39 +03:00
823213703c
This is defined as a trait method on Pane (default: false), and has the obvious transitive equivalent methods in Tab and Window (eg: if all contained items are `can_close_without_prompting`, then that container is also `can_close_without_prompting`). The intent is to avoid bothering the user to confirm closing a window when the content is not stateful and doesn't warrant it. For example: the window that is displayed in the event of a configuration error really shouldn't prompt to the user to confirm closing it. All termwiztermtab panes are `can_close_without_prompting==true` to effect this policy. In the future, we could teach LocalPane to lookup the session leader process against a list of "uninteresting" or "stateless" processes and return an appropriate result (as suggested in https://github.com/wez/wezterm/issues/280). That functionality is NOT part of this commit. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |