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

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

[elpa] externals/company 0cf9232317: company--clean-string: Try to print


From: ELPA Syncer
Subject: [elpa] externals/company 0cf9232317: company--clean-string: Try to print the newlines better in the popup
Date: Sun, 7 Jan 2024 18:57:31 -0500 (EST)

branch: externals/company
commit 0cf923231702b8fb7e494af1ae06666a7aa5851d
Author: Dmitry Gutov <dmitry@gutov.dev>
Commit: Dmitry Gutov <dmitry@gutov.dev>

    company--clean-string: Try to print the newlines better in the popup
    
    For the benefit of ML-driven completions, mostly
---
 company.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/company.el b/company.el
index db589f9396..26e73671be 100644
--- a/company.el
+++ b/company.el
@@ -3480,7 +3480,9 @@ If SHOW-VERSION is non-nil, show the version in the echo 
area."
                ;; We shouldn't get any of these, but sometimes we might.
                ;; The official "replacement character" is not supported by 
some fonts.
                ;;"\ufffd"
-               "?"
+               (if (equal match "\n")
+                   (propertize "\\\\n" 'face 'font-lock-escape-face)
+                 "?")
                )
               ((match-beginning 2)
                ;; Zero-width non-breakable space.



reply via email to

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