MCPcopy Create free account
hub / github.com/Eeive/Evcode-ide / remove_char_range

Method remove_char_range

src/editor/document.rs:172–178  ·  view source on GitHub ↗
(&mut self, start: usize, end: usize)

Source from the content-addressed store, hash-verified

170 }
171
172 pub fn remove_char_range(&mut self, start: usize, end: usize) {
173 let start = start.min(self.len_chars());
174 let end = end.min(self.len_chars());
175 if start < end {
176 self.rope.remove(start..end);
177 }
178 }
179
180 pub fn delete_line(&mut self, line: usize) {
181 if line >= self.line_count() {

Callers 6

delete_lineMethod · 0.80
delete_char_forwardMethod · 0.80
delete_char_backwardMethod · 0.80
undoMethod · 0.80
redoMethod · 0.80
take_selectionMethod · 0.80

Calls 1

len_charsMethod · 0.80

Tested by

no test coverage detected