Skip to content

Commit 3d2723f

Browse files
committed
Make outside prop in coordsChar non-inclusive at bottom
1 parent 60f3951 commit 3d2723f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/measurement/position_measurement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ function coordsCharInner(cm, lineObj, lineNo, x, y) {
519519
// base X position
520520
let coords = cursorCoords(cm, Pos(lineNo, ch, sticky), "line", lineObj, preparedMeasure)
521521
baseX = coords.left
522-
outside = y < coords.top || y > coords.bottom
522+
outside = y < coords.top || y >= coords.bottom
523523
}
524524

525525
ch = skipExtendingChars(lineObj.text, ch, 1)

0 commit comments

Comments
 (0)