Skip to main content

Module range

Module range 

Source
Expand description

The vim grammar Range – the dispatcher’s range arg.

Distinct from lattice_protocol::position::Range (which is a structural [start, end) byte range used by edits and decorations). The grammar Range carries vim’s ex-syntax range forms: :1,5, :%, :'<,'>, :.,+10, Selection (active visual region), plugin-supplied custom ranges.

Enums§

Range
A vim range argument: which lines an ex-command or operator covers, before it is resolved against a document.
RangeBound
One end of a Range::Span.

Functions§

span_to_whole_lines
The inclusive whole lines an operator’s byte span covers, given its start and end (line, byte) in either order.