We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0968398 commit 4fb9916Copy full SHA for 4fb9916
1 file changed
src/measurement/position_measurement.js
@@ -559,6 +559,7 @@ function coordsBidiPartWrapped(cm, lineObj, _lineNo, preparedMeasure, order, x,
559
// wrapped line, and then do a flat search in which we discard any
560
// spans that aren't on the line.
561
let {begin, end} = wrappedLineExtent(cm, lineObj, preparedMeasure, y)
562
+ if (/\s/.test(lineObj.text.charAt(end - 1))) end--
563
let part = null, closestDist = null
564
for (let i = 0; i < order.length; i++) {
565
let p = order[i]
0 commit comments