From 5dbfbb18799bbbadb6b0abde78b59b094faeacc0 Mon Sep 17 00:00:00 2001 From: Kendall Goto Date: Wed, 9 Apr 2025 20:18:06 -0700 Subject: [PATCH] Fix: Reverse highlights unwind incorrectly --- src/core/Chef.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/Chef.mjs b/src/core/Chef.mjs index ab8f83de..3f774ba2 100755 --- a/src/core/Chef.mjs +++ b/src/core/Chef.mjs @@ -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]];