mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-26 03:19:48 +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:
parent
ceba3ff34f
commit
bc995520b7
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user