[Python-checkins] cpython (3.2): Do not try to insert control characters.

martin.v.loewis python-checkins at python.org
Sun Jun 3 12:33:38 CEST 2012


http://hg.python.org/cpython/rev/ec5bc858df25
changeset: 77325:ec5bc858df25
branch: 3.2
parent: 77322:41e85ac2ccef
user: Martin v. Löwis <martin at v.loewis.de>
date: Sun Jun 03 12:26:09 2012 +0200
summary:
 Do not try to insert control characters.
files:
 Lib/idlelib/AutoCompleteWindow.py | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/idlelib/AutoCompleteWindow.py b/Lib/idlelib/AutoCompleteWindow.py
--- 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
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /