Skip to main content

cursor_inside_range

Function cursor_inside_range 

Source
pub fn cursor_inside_range(cursor: Position, range: &Range) -> bool
Expand description

Is the editor cursor inside the half-open LSP range? Compares only by (line, character) in LSP utf-16 space because the range is LSP-shape; the host cursor is assumed converted. Phase 5.8.AD.2: hoisted from TUI App.