diff options
| author | James Nguyen <james@jojojames.com> | 2017-11-30 23:10:07 -0800 |
|---|---|---|
| committer | James Nguyen <james@jojojames.com> | 2017-11-30 23:10:07 -0800 |
| commit | 3ab25fba0fd406cdf8ce9911d113be3dd5146b38 (patch) | |
| tree | 222ec52958e15fa7952bae57d3c8823ab751f6b4 | |
| parent | 96360cfe2464ee0e3e464cefc09a231e0cecd83b (diff) | |
Helm: Add fboundp check
| -rw-r--r-- | evil-helm.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/evil-helm.el b/evil-helm.el index f61b98a..d05eb91 100644 --- a/evil-helm.el +++ b/evil-helm.el @@ -51,8 +51,10 @@ (unless (numberp args) (setq args 1)) (dotimes (_ (abs args)) (if (or (and (< args 0) (not backwards)) (and (> args 0) backwards)) - (helm-toggle-visible-mark-backwards) - (helm-toggle-visible-mark)))) + (when (fboundp 'helm-toggle-visible-mark-backwards) + (helm-toggle-visible-mark-backwards)) + (when (fboundp 'helm-toggle-visible-mark) + (helm-toggle-visible-mark))))) (defun evil-helm-setup () "Set up `evil' bindings for `helm'." |
