From 74c3501ecd19ec9af0d30c16c10ded47dc995ffa Mon Sep 17 00:00:00 2001 From: Daniel Mendler Date: Tue, 5 Nov 2024 09:58:06 +0100 Subject: cape-char: Add space to the annotation to avoid truncation --- cape-char.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cape-char.el b/cape-char.el index 3fe7ae6..5df382c 100644 --- a/cape-char.el +++ b/cape-char.el @@ -56,7 +56,7 @@ are not included. Hash values are either char or strings." (defun cape-char--annotation (hash name) "Lookup NAME in HASH and return annotation." (when-let ((char (gethash name hash))) - (if (stringp char) (format " %s" char) (format " %c" char)))) + (format (if (stringp char) " %s " " %c ") char))) (defun cape-char--signature (hash name) "Lookup NAME in HASH and return signature." -- cgit v1.0