Skip to main content

Module visual

Module visual 

Source
Expand description

Visual-mode selection helpers — renderer-neutral computation of the highlighted range when editor.modal == Visual(_).

Phase 5.8.P: hoisted out of lattice-ui-tui::render::visual_ selection_range so both renderer peers paint the same selection range. The TUI peer keeps its apply_match_overlay splice; the GPUI peer paints a flex_row cell with an inverted background. Both consume Editor::visual_selection_range.

Structs§

BlockExtents
Rectangle defined by a Blockwise Visual selection’s (anchor, head) positions, normalised so that start_line ≤ end_line and start_col ≤ end_col. Byte columns, not display columns — renderers fold/inlay-expand at paint time.