Fix: Reverse highlights unwind incorrectly (#2022)

Co-authored-by: GCHQ Developer 85297 <95289555+C85297@users.noreply.github.com>
This commit is contained in:
Kendall Goto 2026-06-15 02:06:51 -07:00 committed by GitHub
parent 31808e83d5
commit 7a28e0534b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -138,6 +138,8 @@ class Chef {
if (!highlights) return false;
if (direction === "reverse") highlights.reverse();
for (let i = 0; i < highlights.length; i++) {
// Remove multiple highlights before processing again
pos = [pos[0]];