pub fn delete_range(
buf: &mut TextBuffer,
cur: &mut TextCursor,
undo: &mut UndoStack,
range: Range<usize>,
)Expand description
Delete the byte range (char-boundary clamped by callers), collapse
the caret to range.start, and record an undo entry. See
insert_text for the visibility rationale.