Function add_ed::buffer::verify_selection [−][src]
pub fn verify_selection(
buffer: &impl Buffer,
selection: (usize, usize)
) -> Result<(), &'static str>
Expand description
Verify that all lines in the selection exist and that it isn’t empty.
This will always error if buffer.len() == 0, since there are no lines that exist.