diff options
| author | Laurenz <laurmaedje@gmail.com> | 2025-06-10 20:13:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-10 18:13:33 +0000 |
| commit | 98034903e4184708dbaf3cf6b23a4f4de5e910ec (patch) | |
| tree | 449ded5f9157587720ee6cdf656b18a121db4a74 /crates/typst-ide/src/complete.rs | |
| parent | a6ab6ac99a3db30d833f60e59959785f60fdc853 (diff) | |
Adjust source file API surface (#6423)
Diffstat (limited to 'crates/typst-ide/src/complete.rs')
| -rw-r--r-- | crates/typst-ide/src/complete.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-ide/src/complete.rs b/crates/typst-ide/src/complete.rs index a042b164..c9832067 100644 --- a/crates/typst-ide/src/complete.rs +++ b/crates/typst-ide/src/complete.rs @@ -1698,7 +1698,7 @@ mod tests { // Then, add the invalid `#cite` call. Had the document been invalid // initially, we would have no populated document to autocomplete with. - let end = world.main.len_bytes(); + let end = world.main.text().len(); world.main.edit(end..end, " #cite()"); test_with_doc(&world, -2, doc.as_ref()) |
