commit | 97aa21b46a931cea07a37d8d8d3069bfd93a558f | [log] [tgz] |
---|---|---|
author | Martin v. Löwis <martin@v.loewis.de> | Sun Jun 03 12:26:09 2012 +0200 |
committer | Martin v. Löwis <martin@v.loewis.de> | Sun Jun 03 12:26:09 2012 +0200 |
tree | b7f299983e9e5fd0cd3e03d2f6682f71268ba6b8 | |
parent | 862d13a30f36d01404cec5c0553c66c89c8c8f2a [diff] [blame] |
Do not try to insert control characters.
diff --git a/Lib/idlelib/AutoCompleteWindow.py b/Lib/idlelib/AutoCompleteWindow.py index 0477746..7787e70 100644 --- a/Lib/idlelib/AutoCompleteWindow.py +++ b/Lib/idlelib/AutoCompleteWindow.py
@@ -354,7 +354,7 @@ # A modifier key, so ignore return - elif event.char: + elif event.char and event.char >= ' ': # Regular character with a non-length-1 keycode self._change_start(self.start + event.char) self.lasttypedstart = self.start