aboutsummaryrefslogtreecommitdiffstats
path: root/src/run
diff options
context:
space:
mode:
Diffstat (limited to 'src/run')
-rw-r--r--src/run/builtin.rs9
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
}
}