Skip to content

Commit 67faebf

Browse files
author
SSJohns
committed
Guard against unchanged seeked
1 parent 876e8b9 commit 67faebf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/parser/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,9 @@ impl<'a, 'o> Parser<'a, 'o> {
11111111
seeked += pos;
11121112
}
11131113
}
1114-
*content = content[seeked..].to_vec();
1114+
if seeked != 0 {
1115+
*content = content[seeked..].to_vec();
1116+
}
11151117
if strings::is_blank(content) {
11161118
node.detach();
11171119
}

0 commit comments

Comments
 (0)