Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

fix(#230): fix offset update after delegating parser

Grant Lemons749e6dd47366
diff --git a/harper-core/src/parsers/typst.rs b/harper-core/src/parsers/typst.rs
index 6c15494ed..3a894112c 100644
--- a/harper-core/src/parsers/typst.rs
+++ b/harper-core/src/parsers/typst.rs
@@ -63,7 +63,7 @@ fn parse_english(
t
})
.collect_vec();
- *offset = res.last()?.span.end - 1;
+ *offset = res.last()?.span.end;
Some(res)
}