Added docomplete truth check on hy/completer.py:27
Without the check, the next line will reference readline even if the library was not successfully loaded.
This commit is contained in:
parent
bb00515ae7
commit
c4f183f97c
@ -24,10 +24,11 @@ except ImportError:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
docomplete = False
|
docomplete = False
|
||||||
|
|
||||||
if sys.platform == 'darwin' and 'libedit' in readline.__doc__:
|
if docomplete:
|
||||||
readline_bind = "bind ^I rl_complete"
|
if sys.platform == 'darwin' and 'libedit' in readline.__doc__:
|
||||||
else:
|
readline_bind = "bind ^I rl_complete"
|
||||||
readline_bind = "tab: complete"
|
else:
|
||||||
|
readline_bind = "tab: complete"
|
||||||
|
|
||||||
|
|
||||||
class Completer(object):
|
class Completer(object):
|
||||||
|
Loading…
Reference in New Issue
Block a user