Fix #1117 can't use the '3' key

This commit is contained in:
Andrew Resch 2010-01-04 00:18:53 +00:00
parent 6312ad4a7e
commit 97375f1a7c
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ class Screen(CursesStdIO):
self.input = self.input[:self.input_cursor - 1] + self.input[self.input_cursor:]
self.input_cursor -= 1
elif c == curses.KEY_DC or c == 51:
elif c == curses.KEY_DC:
if self.input and self.input_cursor < len(self.input):
self.input = self.input[:self.input_cursor] + self.input[self.input_cursor + 1:]