emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/eglot 8e0cf60 45/62: Fix textDocument/hover responses w


From: Stefan Monnier
Subject: [elpa] externals/eglot 8e0cf60 45/62: Fix textDocument/hover responses where MarkedString is a plist (#72)
Date: Sat, 29 Sep 2018 17:13:35 -0400 (EDT)

branch: externals/eglot
commit 8e0cf60d13cef8dcf390970bdc4b3308548c789d
Author: mkcms <address@hidden>
Commit: João Távora <address@hidden>

    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

[Prev in Thread] Current Thread [Next in Thread]