pub fn replace_range(
buf: &mut TextBuffer,
cur: &mut TextCursor,
undo: &mut UndoStack,
range: Range<usize>,
text: &str,
)Expand description
Replace the byte range with text, landing the caret after the
replacement and recording a single undo entry. See insert_text
for the visibility rationale.