emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/company 520978c 02/46: Change the replacement character


From: Dmitry Gutov
Subject: [elpa] externals/company 520978c 02/46: Change the replacement character for non-printables
Date: Wed, 30 Dec 2020 18:33:01 -0500 (EST)

branch: externals/company
commit 520978c062d6b2905854d70d10314a514825eb17
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    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)))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]