summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/rlcompleter.py4
-rw-r--r--Misc/NEWS3
2 files changed, 6 insertions, 1 deletions
diff --git a/Lib/rlcompleter.py b/Lib/rlcompleter.py
index 319e826..931edcc 100644
--- a/Lib/rlcompleter.py
+++ b/Lib/rlcompleter.py
@@ -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
diff --git a/Misc/NEWS b/Misc/NEWS
index 2e8e0db..60ea2da 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -163,6 +163,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
-------