Skip to content

EditorView.visualLineSide method

EditorView › visualLineSide

Official

Get the cursor position visually at the start or end of a line.

Signature:

visualLineSide(line: Line, end: boolean): SelectionRange

Parameters:

Parameter Type Description
line Line The line.
end boolean Whether to get the end position.

Returns: SelectionRangeThe selection range.