(line, ch, sticky, outside, xRel)
| 4056 | // is true, that means the coordinates lie outside the line's |
| 4057 | // vertical range. |
| 4058 | function PosWithInfo(line, ch, sticky, outside, xRel) { |
| 4059 | var pos = Pos(line, ch, sticky) |
| 4060 | pos.xRel = xRel |
| 4061 | if (outside) { |
| 4062 | pos.outside = true |
| 4063 | } |
| 4064 | return pos |
| 4065 | } |
| 4066 | |
| 4067 | // Compute the character position closest to the given coordinates. |
| 4068 | // Input must be lineSpace-local ("div" coordinate system). |
no test coverage detected