Skip to content

Commit

Permalink
Merge pull request hylang#1373 from ChefAndy/master
Browse files Browse the repository at this point in the history
hy/completer.py:27 docomplete truth check
  • Loading branch information
Kodiologist committed Aug 7, 2017
2 parents bb00515 + 1f8c82a commit 7e5d483
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -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>
9 changes: 5 additions & 4 deletions hy/completer.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@
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):
Expand Down

0 comments on commit 7e5d483

Please sign in to comment.