Skip to content

Commit 0f2a7a5

Browse files
committed
actually process highlights in reverse
1 parent 7c8be12 commit 0f2a7a5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/core/Chef.mjs

+2
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ class Chef {
131131

132132
if (!highlights) return false;
133133

134+
if(direction === "reverse") highlights.reverse();
135+
134136
for (let i = 0; i < highlights.length; i++) {
135137
// Remove multiple highlights before processing again
136138
pos = [pos[0]];

0 commit comments

Comments
 (0)