Skip to content

Commit a04d012

Browse files
committed
fix a bug with column-to-index mapping
1 parent 1f82c8e commit a04d012

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,7 @@
10971097
while (run_startColumn(runBase + 5 * nearbyRun) > column && nearbyRun > 0) nearbyRun--;
10981098
while (run_endColumn(runBase + 5 * nearbyRun) < column && nearbyRun + 1 < runCount) nearbyRun++;
10991099
let run = runBase + 5 * nearbyRun;
1100-
index = column === run_endColumn(run) ? run_endIndex(run) : run_endIndex(run) + column - run_startColumn(run);
1100+
index = column === run_endColumn(run) ? run_endIndex(run) : run_startIndex(run) + column - run_startColumn(run);
11011101
}
11021102
return index;
11031103
}

0 commit comments

Comments
 (0)