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): SelectionRangeParameters:
| Parameter | Type | Description |
|---|---|---|
| line | Line | The line. |
| end | boolean | Whether to get the end position. |
Returns: SelectionRange — The selection range.