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]];