Skip to content

Commit 5dbfbb1

Browse files
committed
Fix: Reverse highlights unwind incorrectly
1 parent 7c8be12 commit 5dbfbb1

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)