From b3ea0f7580a41f0c7769ba610a6219a5fc7c9eb6 Mon Sep 17 00:00:00 2001 From: Jonas Maier <> Date: Sat, 7 Mar 2026 11:32:59 +0100 Subject: fix reloading --- src/run/mod.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/run/mod.rs') diff --git a/src/run/mod.rs b/src/run/mod.rs index c0a108a..18d3f0a 100644 --- a/src/run/mod.rs +++ b/src/run/mod.rs @@ -143,8 +143,10 @@ impl Executor { None => Box::new(io::stdout()), }; - let cloned_session = self.se.clone(); + // currently only required for `re`, cannot happen in background thread + builtin.special(self.se.clone(), &cmd.args); + let cloned_session = self.se.clone(); let handle = std::thread::spawn(move || { builtin.io(cloned_session, &cmd.args, &mut input, &mut output) }); @@ -283,6 +285,8 @@ type BuiltinResult = Result<(), BuiltinError>; pub trait Builtin: Send + Sync { fn name(&self) -> &str; + fn special(&self, session: Arc>, args: &[BString]) {} + fn io( &self, session: Arc>, -- cgit v1.2.3