diff options
| author | Jonas Maier <> | 2026-03-05 20:16:37 +0100 |
|---|---|---|
| committer | Jonas Maier <> | 2026-03-05 20:16:37 +0100 |
| commit | caabc690186a869d0ea7d34d461a93675761ad11 (patch) | |
| tree | 92d925731b3bfb14e42b101323e1d579d5579808 /src/run | |
| parent | 88e257128546f2f7aa549cdd62fd15f706ae5135 (diff) | |
| download | pish-caabc690186a869d0ea7d34d461a93675761ad11.tar.gz | |
reload now works when you changed directory
Diffstat (limited to 'src/run')
| -rw-r--r-- | src/run/builtin.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/run/builtin.rs b/src/run/builtin.rs index 5524fd7..b342dd0 100644 --- a/src/run/builtin.rs +++ b/src/run/builtin.rs @@ -41,13 +41,8 @@ impl Builtin for re { fn mod_session(&self, session: &mut Session, _args: &[BString]) { session.raw.disable(); - match Command::new("cargo").arg("build").status() { - Ok(status) if status.success() => { - crate::reload::begin_reload(); - } - _ => (), - } - session.raw.enable(); + crate::reload::begin_reload(); + session.raw.enable(); // something went wrong, let's restore raw mode } } |
