diff options
author | Iqbal Ansari <iqbalansari02@yahoo.com> | 2020-04-27 11:17:11 +0530 |
---|---|---|
committer | Iqbal Ansari <iqbalansari02@yahoo.com> | 2020-04-27 11:17:11 +0530 |
commit | 6b908f62df6762120c05af98d67b19b11349478a (patch) | |
tree | c2d25e34e22e303da44d6db1c9105d81b8bbbe8d /helm-mode.el | |
parent | 3fddd8c425c918074a4bda9982ce90c29e45adbd (diff) |
Use instead `equal` instead of `string=` to compare display properties
This avoids the error that might occur if the candidates have image set display property
Diffstat (limited to 'helm-mode.el')
-rw-r--r-- | helm-mode.el | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/helm-mode.el b/helm-mode.el index 673e3fcb..27c7e95d 100644 --- a/helm-mode.el +++ b/helm-mode.el @@ -478,9 +478,7 @@ If COLLECTION is an `obarray', a TEST should be needed. See `obarray'." (defun helm-comp-read--move-to-first-real-candidate () (helm-aif (helm-get-selection nil 'withprop) ;; Avoid error with candidates with an image as display (#2296). - (when (or (and (stringp it) - (string= (get-text-property 0 'display it) "[?]")) - (not (stringp it))) + (when (equal (get-text-property 0 'display it) "[?]") (helm-next-line)))) (defun helm-cr-default (default cands) |