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

This commit is contained in:
Andrew Resch 2010-01-04 00:18:53 +00:00
parent 4cde35a067
commit 3870c25c9d
2 changed files with 2 additions and 1 deletions

View file

@ -15,6 +15,7 @@
==== Console ====
* Fix #1115 not showing usage for the 'debug' command
* Fix #1116 not being able to use command aliases when not connected to a daemon
* Fix #1117 can't use the '3' key
==== Windows ====
* Fix displaying folders in the add torrent dialog

View file

@ -390,7 +390,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:]