I thought it was harmless, but apparently it makes the 'b' command not work
on Linux machines. Oops.
Thanks to Gabriel Filion and gernot on IRC for reporting this.
Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
if readline:
readline.set_completer_delims(' \t\n\r/')
readline.set_completer(completer)
- readline.parse_and_bind('bind ^I rl_complete')
+ if platform.system() == 'Darwin':
+ # MacOS uses a slighly incompatible clone of libreadline
+ readline.parse_and_bind('bind ^I rl_complete')
readline.parse_and_bind('tab: complete')
init_readline_vars()
lines = inputiter()