summaryrefslogtreecommitdiff
path: root/cape-char.el
diff options
context:
space:
mode:
Diffstat (limited to 'cape-char.el')
-rw-r--r--cape-char.el2
1 files changed, 1 insertions, 1 deletions
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."