2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-29 13:00:03 +00:00

Fix confetty tab completion

The refactoring to main caused scope of readline to be incorrect.
Pulled the scope back into namespace.
This commit is contained in:
Jarrod Johnson 2019-01-14 09:15:59 -05:00
parent ceba3ff34f
commit bc995520b7

View File

@ -856,6 +856,10 @@ def check_power_state():
return
if sys.stdout.isatty():
import readline
def main():
global inconsole
try:
@ -873,7 +877,6 @@ def main():
if sys.stdout.isatty():
import readline
readline.parse_and_bind("tab: complete")
readline.parse_and_bind("set bell-style none")