Fix: Reverse highlights unwind incorrectly

This commit is contained in:
Kendall Goto 2025-04-09 20:18:06 -07:00
parent 7c8be12d52
commit 5dbfbb1879
No known key found for this signature in database
GPG key ID: C78AF3694E455D69

View file

@ -131,6 +131,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]];