This commit is contained in:
Kai Mast 2020-03-28 15:25:55 -07:00
parent 57b2daa57e
commit cbe9298a0b
3 changed files with 8 additions and 9 deletions

View file

@ -54,8 +54,7 @@ impl<'a> Editor<'a> {
if start > 0 {
self.cursor.move_left(self.value);
let _ = self.value.remove(start - 1);
self.value.remove(start - 1);
}
}
}
@ -70,7 +69,7 @@ impl<'a> Editor<'a> {
let end = self.cursor.end(self.value);
if end < self.value.len() {
let _ = self.value.remove(end);
self.value.remove(end);
}
}
}