From c43ad9bfb9467627df1b40266ac7b0d570a55a62 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 21 Jul 2022 15:44:49 +0200 Subject: Refactor to move `index` field to `point` --- src/construct/list.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/construct/list.rs') diff --git a/src/construct/list.rs b/src/construct/list.rs index 12c666b..06be7ec 100644 --- a/src/construct/list.rs +++ b/src/construct/list.rs @@ -317,7 +317,8 @@ fn after(tokenizer: &mut Tokenizer, code: Code, blank: bool) -> StateFnResult { tokenizer.events.len() - 1, &[Token::ListItem], ); - let prefix = tokenizer.index - tokenizer.events[start].index + (if blank { 1 } else { 0 }); + let prefix = tokenizer.point.index - tokenizer.events[start].point.index + + (if blank { 1 } else { 0 }); let container = tokenizer.container.as_mut().unwrap(); container.blank_initial = blank; -- cgit