UI module

caret_position

procedure · 1 overloadsince 0.31.0Source

Where the caret is, as a zero-based line and a byte column within it.

caret_position :: (edit: *Text_Edit) -> (line: int, column: int)

Where the caret is, as a zero-based line and a byte column within it.

Parameters

edit: *Text_Edit
the text being edited.

Returns

line: int
column: int

See also