diff --git a/crates/typst-cli/src/watch.rs b/crates/typst-cli/src/watch.rs index ee18bc639..97eb07d0f 100644 --- a/crates/typst-cli/src/watch.rs +++ b/crates/typst-cli/src/watch.rs @@ -253,11 +253,11 @@ impl Watcher { }; // Never recompile because the output file changed. - return type_relevant + type_relevant && !event .paths .iter() - .all(|path| is_same_file(path, &self.output).unwrap_or(false)); + .all(|path| is_same_file(path, &self.output).unwrap_or(false)) } }