Skip to content

Commit

Permalink
Fix #948: Use format string instead of concat
Browse files Browse the repository at this point in the history
* eglot.el (eglot-handle-notification): Because diagnostics code can
be integer or string, and integer fails the sequencep test, use format
to create this string.
  • Loading branch information
theothornhill authored May 9, 2022
1 parent 7857cc1 commit ba618d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -1959,7 +1959,7 @@ COMMAND is a symbol naming the command."
((= sev 2) 'eglot-warning)
(t 'eglot-note)))
(mess (source code message)
(concat source (and code (concat " [" code "]")) ": " message)))
(concat source (and code (format " [%s]" code)) ": " message)))
(if-let ((buffer (find-buffer-visiting (eglot--uri-to-path uri))))
(with-current-buffer buffer
(cl-loop
Expand Down

0 comments on commit ba618d2

Please sign in to comment.