From 8e0cf60d13cef8dcf390970bdc4b3308548c789d Mon Sep 17 00:00:00 2001 From: mkcms Date: Sat, 18 Aug 2018 01:56:01 +0200 Subject: [PATCH] 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 13c72abd..6f367611 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)