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

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

[elpa] externals/eglot 7f2e680 38/49: Fix #627: handle empty actions arr


From: Stefan Monnier
Subject: [elpa] externals/eglot 7f2e680 38/49: Fix #627: handle empty actions array in window/showMessageRequest
Date: Wed, 17 Mar 2021 18:41:49 -0400 (EDT)

branch: externals/eglot
commit 7f2e680a4ca6d8b9fdc414f07f9df0a614d6c481
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>

    Fix #627: handle empty actions array in window/showMessageRequest
    
    * eglot.el (eglot-handle-request window/showMessageRequest):
    Handle empty actions.
---
 eglot.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/eglot.el b/eglot.el
index 851f2e6..98a1059 100644
--- a/eglot.el
+++ b/eglot.el
@@ -1572,7 +1572,8 @@ COMMAND is a symbol naming the command."
 (cl-defmethod eglot-handle-request
   (_server (_method (eql window/showMessageRequest)) &key type message actions)
   "Handle server request window/showMessageRequest"
-  (let ((label (completing-read
+  (let ((actions (append actions nil)) ;; gh#627
+        (label (completing-read
                 (concat
                  (format (propertize "[eglot] Server reports (type=%s): %s"
                                      'face (if (<= type 1) 'error))



reply via email to

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