tag: 1.2
commit 13d8da4bc91b906ce6e94a1649f83c6be64b1d83
Author: mkcms <[email protected]>
Commit: João Távora <[email protected]>

    Fix textDocument/hover responses where MarkedString is a plist (#72)
    
    * eglot.el (eglot--hover-info): Forward all non-vector content to
    eglot--format-markup.
---
 eglot.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/eglot.el b/eglot.el
index 13c72ab..6f36761 100644
--- a/eglot.el
+++ b/eglot.el
@@ -1446,8 +1446,7 @@ is not active."
   (let ((heading (and range (pcase-let ((`(,beg . ,end) (eglot--range-region 
range)))
                               (concat (buffer-substring beg end)  ": "))))
         (body (mapconcat #'eglot--format-markup
-                         (append (cond ((vectorp contents) contents)
-                                       ((stringp contents) (list contents)))) 
"\n")))
+                         (if (vectorp contents) contents (list contents)) 
"\n")))
     (when (or heading (cl-plusp (length body))) (concat heading body))))
 
 (defun eglot--sig-info (sigs active-sig active-param)

Reply via email to