Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(53376)

Unified Diff: Lib/rlcompleter.py

Issue 25660: tabs don't work correctly in python repl
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/rlcompleter.py Wed Nov 18 12:44:49 2015 -0500
+++ b/Lib/rlcompleter.py Thu Nov 19 15:08:49 2015 -0500
@@ -75,7 +75,9 @@
if not text.strip():
if state == 0:
- return '\t'
+ readline.insert_text('\t')
+ readline.redisplay()
+ return ''
Martin Panter 2015/11/21 00:28:23 Might be better to return None (indicates no more
Yury Selivanov 2015/11/21 00:40:42 We need to return an empty string here, otherwise,
else:
return None
« no previous file with comments | « no previous file | no next file » | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+