Skip to main content

read_vim_range

Function read_vim_range 

Source
pub fn read_vim_range<H: Host>(
    ed: &mut Editor<View, H>,
    start: (usize, usize),
    end: (usize, usize),
    kind: RangeKind,
) -> String
Expand description

Read the text in a vim-shaped range without mutating. Used by Operator::Yank so we can pipe the same range translation as cut_vim_range but skip the delete + inverse extraction.