aboutsummaryrefslogtreecommitdiffstats
path: root/src/construct/attention.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-05 13:49:56 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-05 13:55:56 +0200
commit55a6f8560cf88b655f49f1a1a59f6c1dc6afe022 (patch)
treec53e38ee36c72292cedccaebdfce1a6beddeaf6c /src/construct/attention.rs
parentf2d62d446a7b1e03ef14b580e2aca0fad8aa23ef (diff)
downloadmarkdown-rs-55a6f8560cf88b655f49f1a1a59f6c1dc6afe022.tar.gz
markdown-rs-55a6f8560cf88b655f49f1a1a59f6c1dc6afe022.tar.bz2
markdown-rs-55a6f8560cf88b655f49f1a1a59f6c1dc6afe022.zip
Fix resizing attention bug
Diffstat (limited to 'src/construct/attention.rs')
-rw-r--r--src/construct/attention.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/construct/attention.rs b/src/construct/attention.rs
index 2144864..d445938 100644
--- a/src/construct/attention.rs
+++ b/src/construct/attention.rs
@@ -379,7 +379,8 @@ fn resolve(tokenizer: &mut Tokenizer) -> Vec<Event> {
// Opening.
edit_map.add_before(
- open_event_index,
+ // Add after the current sequence (it might remain).
+ open_event_index + 2,
0,
vec![
Event {