Merge pull request #1373 from ChefAndy/master

hy/completer.py:27 docomplete truth check
This commit is contained in:
Kodi Arfer 2017-08-07 10:39:17 -07:00 committed by GitHub
commit 7e5d4830eb
2 changed files with 6 additions and 4 deletions

View File

@ -81,3 +81,4 @@
* Hikaru Ikuta <woodrush924@gmail.com>
* David Schaefer <david.schaefe@gmail.com>
* Jordan Danford <jordandanford@gmail.com>
* Andrew Silva <asilva@law.harvard.edu>

View File

@ -24,10 +24,11 @@ except ImportError:
except ImportError:
docomplete = False
if sys.platform == 'darwin' and 'libedit' in readline.__doc__:
readline_bind = "bind ^I rl_complete"
else:
readline_bind = "tab: complete"
if docomplete:
if sys.platform == 'darwin' and 'libedit' in readline.__doc__:
readline_bind = "bind ^I rl_complete"
else:
readline_bind = "tab: complete"
class Completer(object):