From fb2b4e166d36cf349de41200cf3546753f01642e Mon Sep 17 00:00:00 2001 From: Qua-non Date: Mon, 3 Sep 2012 15:56:44 +0530 Subject: [PATCH] UIX: TextInput fix typo and command for undo for bkspc closes #664 --- kivy/uix/textinput.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kivy/uix/textinput.py b/kivy/uix/textinput.py index cc9d9fa79..c6dfbb75c 100644 --- a/kivy/uix/textinput.py +++ b/kivy/uix/textinput.py @@ -199,7 +199,7 @@ class TextInput(Widget): self._selection_finished = True self._selection_touch = None self.selection_text = '' - self.__selection_from = None + self._selection_from = None self._selection_to = None self._bubble = None self._lines_flags = [] @@ -419,7 +419,7 @@ class TextInput(Widget): self._selection = True self.delete_selection(True) elif undo_type == 'bkspc': - substring = x_item['undo_command'][2:] + substring = x_item['undo_command'][2:][0] self.insert_text(substring, True) else: # delsel