1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-23 06:54:45 +03:00

Filter figterm from stateful check

This commit is contained in:
Grant Gurvis 2023-03-06 07:52:32 -08:00 committed by Wez Furlong
parent 55982436d9
commit 9782b71cf1

View File

@ -509,7 +509,14 @@ impl Pane for LocalPane {
});
fn default_stateful_check(proc_list: &LocalProcessInfo) -> bool {
let names = proc_list.flatten_to_exe_names();
let names = proc_list
.flatten_to_exe_names()
.into_iter()
.map(|s| match s.strip_suffix(" (figterm)") {
Some(s) => s.into(),
None => s,
})
.collect::<HashSet<_>>();
let skip = configuration()
.skip_close_confirmation_for_processes_named