mirror of
https://github.com/python/cpython.git
synced 2025-08-23 18:24:46 +00:00
Issue #25660: Fix TAB key behaviour in REPL.
This commit is contained in:
parent
2b818142d1
commit
a7eae4016e
2 changed files with 6 additions and 1 deletions
|
@ -75,7 +75,9 @@ class Completer:
|
||||||
|
|
||||||
if not text.strip():
|
if not text.strip():
|
||||||
if state == 0:
|
if state == 0:
|
||||||
return '\t'
|
readline.insert_text('\t')
|
||||||
|
readline.redisplay()
|
||||||
|
return ''
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
|
@ -67,6 +67,9 @@ Core and Builtins
|
||||||
- Issue #26171: Fix possible integer overflow and heap corruption in
|
- Issue #26171: Fix possible integer overflow and heap corruption in
|
||||||
zipimporter.get_data().
|
zipimporter.get_data().
|
||||||
|
|
||||||
|
- Issue #25660: Fix TAB key behaviour in REPL with readline.
|
||||||
|
|
||||||
|
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue