mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-09 19:00:46 +00:00
Remove extra check (#357)
This commit is contained in:
parent
ad23dfe59b
commit
976cb99bdb
@ -303,11 +303,9 @@ impl TextArea {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn backspace(&mut self) {
|
fn backspace(&mut self) {
|
||||||
if self.cursor != 0 {
|
|
||||||
self.move_left();
|
self.move_left();
|
||||||
self.delete();
|
self.delete();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
fn delete(&mut self) {
|
fn delete(&mut self) {
|
||||||
if self.cursor == self.content.len() {
|
if self.cursor == self.content.len() {
|
||||||
|
Loading…
Reference in New Issue
Block a user