Message108381
This (untested) patch should fix the issue for the cmd module:
+++ Lib/cmd.py (working copy)
@@ -112,7 +112,18 @@
import readline
self.old_completer = readline.get_completer()
readline.set_completer(self.complete)
- readline.parse_and_bind(self.completekey+": complete")
+
+ if 'libedit' in readline.__doc__:
+ # readline linked to BSD libedit
+ if self.completekey == 'tab':
+ key = '^I'
+ else:
+ key = self.completekey
+ readline.parse_and_bind("bind %s rl_complete"%(key,))
+
+ else:
+ # readline linked to the real readline
+ readline.parse_and_bind(self.completekey+": complete")
except ImportError:
pass
try: |
|
Date |
User |
Action |
Args |
2010-06-22 14:11:46 | ronaldoussoren | set | recipients:
+ ronaldoussoren, ned.deily, eric.araujo, l0nwlf, slcott |
2010-06-22 14:11:46 | ronaldoussoren | set | messageid: <1277215906.81.0.811807858499.issue9033@psf.upfronthosting.co.za> |
2010-06-22 14:11:45 | ronaldoussoren | link | issue9033 messages |
2010-06-22 14:11:44 | ronaldoussoren | create | |
|