Fix: Reverse highlights unwind incorrectly
This commit is contained in:
parent
7c8be12d52
commit
5dbfbb1879
@ -131,6 +131,8 @@ class Chef {
|
|||||||
|
|
||||||
if (!highlights) return false;
|
if (!highlights) return false;
|
||||||
|
|
||||||
|
if (direction === "reverse") highlights.reverse();
|
||||||
|
|
||||||
for (let i = 0; i < highlights.length; i++) {
|
for (let i = 0; i < highlights.length; i++) {
|
||||||
// Remove multiple highlights before processing again
|
// Remove multiple highlights before processing again
|
||||||
pos = [pos[0]];
|
pos = [pos[0]];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user