diff options
| author | frozolotl <44589151+frozolotl@users.noreply.github.com> | 2024-02-14 12:50:40 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-14 11:50:40 +0000 |
| commit | 8a2527788c33dd41ddefaad4c47a01d9442d898e (patch) | |
| tree | 8b4f8872dbbd425a215e66338fb3141c026fe85a /crates/typst-cli/src/query.rs | |
| parent | 52571dd9efed3a76db85123781e27f96598dc4b3 (diff) | |
Fix watches on moves and removes (#3371)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'crates/typst-cli/src/query.rs')
| -rw-r--r-- | crates/typst-cli/src/query.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/typst-cli/src/query.rs b/crates/typst-cli/src/query.rs index f2257bdf..f2e52666 100644 --- a/crates/typst-cli/src/query.rs +++ b/crates/typst-cli/src/query.rs @@ -16,6 +16,7 @@ use crate::world::SystemWorld; /// Execute a query command. pub fn query(command: &QueryCommand) -> StrResult<()> { let mut world = SystemWorld::new(&command.common)?; + // Reset everything and ensure that the main file is present. world.reset(); world.source(world.main()).map_err(|err| err.to_string())?; |
