Skip to content

Commit

Permalink
Use custom-variable-p in counsel-set-variable
Browse files Browse the repository at this point in the history
counsel.el (counsel-set-variable):
Use custom-variable-p instead of inspecting the custom-type
property, which is only set when a defcustom has a :type.

Re: abo-abo#1643
  • Loading branch information
basil-conto committed Aug 7, 2018
1 parent a5e2972 commit a8a6213
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions counsel.el
Original file line number Diff line number Diff line change
Expand Up @@ -659,8 +659,7 @@ With a prefix arg, restrict list to variables defined using
(interactive (list (intern
(ivy-read "Set variable: " obarray
:predicate (if current-prefix-arg
(lambda (sym)
(get sym 'custom-type))
#'custom-variable-p
#'counsel--variable-p)
:history 'counsel-set-variable-history
:preselect (ivy-thing-at-point)))))
Expand Down

0 comments on commit a8a6213

Please sign in to comment.