summaryrefslogtreecommitdiff
path: root/evil-helm.el
diff options
context:
space:
mode:
authorJames Nguyen <james@jojojames.com>2017-11-30 23:10:07 -0800
committerJames Nguyen <james@jojojames.com>2017-11-30 23:10:07 -0800
commit3ab25fba0fd406cdf8ce9911d113be3dd5146b38 (patch)
tree222ec52958e15fa7952bae57d3c8823ab751f6b4 /evil-helm.el
parent96360cfe2464ee0e3e464cefc09a231e0cecd83b (diff)
Helm: Add fboundp check
Diffstat (limited to 'evil-helm.el')
-rw-r--r--evil-helm.el6
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'."