Remove extra check (#357)

This commit is contained in:
Danil Berestov 2019-06-27 23:19:07 +00:00 committed by Alexandre Bury
parent ad23dfe59b
commit 976cb99bdb

View File

@ -303,11 +303,9 @@ impl TextArea {
}
fn backspace(&mut self) {
if self.cursor != 0 {
self.move_left();
self.delete();
}
}
fn delete(&mut self) {
if self.cursor == self.content.len() {