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

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

[elpa] externals/eglot d784d60 42/49: Fix #635: Correctly protect agains


From: Stefan Monnier
Subject: [elpa] externals/eglot d784d60 42/49: Fix #635: Correctly protect against zero-length completion items
Date: Wed, 17 Mar 2021 18:41:50 -0400 (EDT)

branch: externals/eglot
commit d784d6022c19f7d1da8c1e4a71505749a22a314c
Author: Theodor Thornhill <theo@thornhill.no>
Commit: GitHub <noreply@github.com>

    Fix #635: Correctly protect against zero-length completion items
    
    Close #636.
    
    * eglot.el (eglot-completion-at-point): check for zero length string in 
proxy
    rather than the item.
---
 eglot.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eglot.el b/eglot.el
index 0cb5839..610e57b 100644
--- a/eglot.el
+++ b/eglot.el
@@ -2133,7 +2133,7 @@ is not active."
                                        insertText)
                                       (t
                                        (string-trim-left label)))))
-                           (unless (zerop (length item))
+                           (unless (zerop (length proxy))
                              (put-text-property 0 1 'eglot--lsp-item item 
proxy))
                            proxy))
                        items)))))



reply via email to

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