branch: externals/company
commit 520978c062d6b2905854d70d10314a514825eb17
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>
Change the replacement character for non-printables
---
company.el | 5 ++++-
test/frontends-tests.el | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/company.el b/company.el
index 12cbb17..592c6d1 100644
--- a/company.el
+++ b/company.el
@@ -2629,7 +2629,10 @@ If SHOW-VERSION is non-nil, show the version in the echo
area."
((match-beginning 1)
;; FIXME: Better char for 'non-printable'?
;; We shouldn't get any of these, but sometimes we might.
- "\u2017")
+ ;; The official "replacement character" is not supported by some fonts.
+ ;;"\ufffd"
+ "?"
+ )
((match-beginning 2)
;; Zero-width non-breakable space.
"")
diff --git a/test/frontends-tests.el b/test/frontends-tests.el
index f7f578e..53400e2 100644
--- a/test/frontends-tests.el
+++ b/test/frontends-tests.el
@@ -215,7 +215,7 @@
"avatar"))
(company-candidates-length 2)
(company-backend 'ignore))
- (should (equal '(" avalis‗e "
+ (should (equal '(" avalis?e "
" avatar ")
(company--create-lines 0 999)))))