Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions evil-common.el
Original file line number Diff line number Diff line change
Expand Up @@ -731,10 +731,12 @@ filename."
"Change the cursor's apperance according to SPECS.
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 (not (functionp specs))
(listp specs)
(null (cdr-safe (last specs))))
function for changing the cursor, or a non-empty list of the above."
;; if it's a single spec, wrap it in a list
(when (or (functionp specs)
(null specs)
(not (listp specs))
(cdr-safe (last specs)))
(setq specs (list specs)))
(dolist (spec specs)
(cond
Expand Down
Loading