branch: elpa/symbol-overlay
commit 4623bd1ab38adc94e38ca7a1dc68c3cc9d403c81
Author: Zhu Zihao <[email protected]>
Commit: Zhu Zihao <[email protected]>
Fix format error while marking a symbol contains "%"
* symbol-overlay.el(symbol-overlay-maybe-count): Escape symbol in format
string.
---
symbol-overlay.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/symbol-overlay.el b/symbol-overlay.el
index da4841e099..0fea29900f 100644
--- a/symbol-overlay.el
+++ b/symbol-overlay.el
@@ -398,10 +398,10 @@ If SHOW-COLOR is non-nil, display the color used by
current overlay."
(count (length before))
;; Log to echo area but not *Messages*
message-log-max)
- (message (concat symbol
- ": %d/%d"
+ (message (concat "%s: %d/%d"
(and (cadr keyword) " in scope")
(and show-color (format " (%s)" (cddr keyword))))
+ symbol
(+ count 1)
(+ count (length after))))))