Skip to main content

Module cursor

Module cursor 

Source
Expand description

Multi-cursor tracking, selection ranges, and collision normalization.

Structs§

MultiCursor
Multi-cursor engine managing synchronized cursors across the document.
Position
Exact 2D position in text buffer coordinates (0-indexed line and column).
Selection
A text selection representing an active cursor caret or highlighted range.

Functions§

shift_position_after_edit
Shifts a position based on a preceding document edit that replaced range edit_start..edit_end with inserted_lines.