]> granicus.if.org Git - python/commitdiff
Issue #25660: Fix TAB key behaviour in REPL.
authorYury Selivanov <yselivanov@sprymix.com>
Thu, 4 Feb 2016 06:23:05 +0000 (01:23 -0500)
committerYury Selivanov <yselivanov@sprymix.com>
Thu, 4 Feb 2016 06:23:05 +0000 (01:23 -0500)
Lib/rlcompleter.py
Misc/NEWS

index 378f5aa647351c3691c4f60553c7e2a06b1dcb7e..26f59208bb484ab9b82731b925df81fb7f601b0f 100644 (file)
@@ -75,7 +75,9 @@ class Completer:
 
         if not text.strip():
             if state == 0:
-                return '\t'
+                readline.insert_text('\t')
+                readline.redisplay()
+                return ''
             else:
                 return None
 
index 3a71354a043be50179775b05515bc757498b9e85..691c53371769a1a48b46eef19b0f215219f2593a 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -67,6 +67,9 @@ Core and Builtins
 - Issue #26171: Fix possible integer overflow and heap corruption in
   zipimporter.get_data().
 
+- Issue #25660: Fix TAB key behaviour in REPL with readline.
+
+
 Library
 -------