branch: master
commit dd4acedc822ca9513a4b844d13b63d47214a1809
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el (ivy--add-face): Don't fail for weird str
Fixes #44
---
ivy.el | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ivy.el b/ivy.el
index 5f52262..dfcb266 100644
--- a/ivy.el
+++ b/ivy.el
@@ -723,7 +723,8 @@ Should be run via minibuffer `post-command-hook'."
"Propertize STR with FACE.
`font-lock-append-text-property' is used, since it's better than
`propertize' or `add-face-text-property' in this case."
- (font-lock-append-text-property 0 (length str) 'face face str)
+ (ignore-errors
+ (font-lock-append-text-property 0 (length str) 'face face str))
str)
(defun ivy--filter (name candidates)