From 976cb99bdbf2427b1bbce7964213074d54f61122 Mon Sep 17 00:00:00 2001 From: Danil Berestov Date: Thu, 27 Jun 2019 23:19:07 +0000 Subject: [PATCH] Remove extra check (#357) --- src/views/text_area.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/views/text_area.rs b/src/views/text_area.rs index d1b27dc..cd33192 100644 --- a/src/views/text_area.rs +++ b/src/views/text_area.rs @@ -303,10 +303,8 @@ impl TextArea { } fn backspace(&mut self) { - if self.cursor != 0 { self.move_left(); self.delete(); - } } fn delete(&mut self) {