From 7a28e0534b943202f5cb6b91847db4a5d5682260 Mon Sep 17 00:00:00 2001 From: Kendall Goto Date: Mon, 15 Jun 2026 02:06:51 -0700 Subject: [PATCH] Fix: Reverse highlights unwind incorrectly (#2022) Co-authored-by: GCHQ Developer 85297 <95289555+C85297@users.noreply.github.com> --- src/core/Chef.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/Chef.mjs b/src/core/Chef.mjs index 5be10868..426d9643 100755 --- a/src/core/Chef.mjs +++ b/src/core/Chef.mjs @@ -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]];