diff --git a/src/wildcard.rs b/src/wildcard.rs index 5900bc436..9c9be1572 100644 --- a/src/wildcard.rs +++ b/src/wildcard.rs @@ -448,7 +448,9 @@ mod expander { use crate::{ common::scoped_push, + input_common::terminal_protocols_disable_ifn, path::append_path_component, + threads::is_main_thread, wutil::{dir_iter::DirIter, normalize_path, DevInode}, }; @@ -592,6 +594,10 @@ mod expander { } } + if is_main_thread() { + terminal_protocols_disable_ifn(); + } + // return "." and ".." entries if we're doing completions let Ok(mut dir) = self.open_dir( base_dir, /* return . and .. */