aboutsummaryrefslogtreecommitdiff
path: root/evil-common.el
diff options
context:
space:
mode:
authorJustin Burkett <justin@burkett.cc>2018-06-28 08:26:02 -0400
committerEivind Fonn <evfonn@gmail.com>2019-11-20 16:01:20 +0100
commite466df1f4d2a34631c01e29a84555a00268e4405 (patch)
treeb3c5a07164c36faa06eaa5877fbf483205af2641 /evil-common.el
parent2a592289f7c6579c5ee73b65280a9bf7660f0ded (diff)
Fix evil-set-cursor when spec is a function
Docstring says that the spec can be a zero-argument function, but evil-set-cursor incorrectly handles such a function like a list preventing the function from being executed.
Diffstat (limited to 'evil-common.el')
-rw-r--r--evil-common.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/evil-common.el b/evil-common.el
index c43e196..b0a1500 100644
--- a/evil-common.el
+++ b/evil-common.el
@@ -767,7 +767,8 @@ filename."
SPECS may be a cursor type as per `cursor-type', a color
string as passed to `set-cursor-color', a zero-argument
function for changing the cursor, or a list of the above."
- (unless (and (listp specs)
+ (unless (and (not (functionp specs))
+ (listp specs)
(null (cdr-safe (last specs))))
(setq specs (list specs)))
(dolist (spec specs)