Skip to content
Snippets Groups Projects
Commit a37da5cc authored by Adrian Heine's avatar Adrian Heine Committed by Marijn Haverbeke
Browse files

Fix failing jumpTheGap on Mac

parent cfc17398
No related branches found
No related tags found
No related merge requests found
......@@ -460,7 +460,7 @@ function coordsCharInner(cm, lineObj, lineNo, x, y) {
if (Math.abs(diff) > Math.abs(prevDiff)) pos = moveVisually(cm, lineObj, pos, -dir)
} else {
let ch = findFirst(ch => {
let box = measureCharPrepared(cm, preparedMeasure, ch)
let box = intoCoordSystem(cm, lineObj, measureCharPrepared(cm, preparedMeasure, ch), "line")
if (box.top > y) {
// For the cursor stickiness
end = Math.min(ch - 1, end)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment