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

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

[elpa] externals/eglot de1728c 44/45: * eglot.el (eglot-completion-at-po


From: João Távora
Subject: [elpa] externals/eglot de1728c 44/45: * eglot.el (eglot-completion-at-point): Less chatter.
Date: Thu, 22 Nov 2018 19:15:35 -0500 (EST)

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

    * eglot.el (eglot-completion-at-point): Less chatter.
---
 eglot.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/eglot.el b/eglot.el
index 9ff9cdf..b408e59 100644
--- a/eglot.el
+++ b/eglot.el
@@ -1629,7 +1629,8 @@ is not active."
                           (delete-region beg end)
                           (goto-char beg)
                           (funcall (or snippet-fn #'insert) newText)))
-                      (eglot--apply-text-edits additionalTextEdits))
+                      (when (cl-plusp (length additionalTextEdits))
+                        (eglot--apply-text-edits additionalTextEdits)))
                      (snippet-fn
                       ;; A snippet should be inserted, but using plain
                       ;; `insertText'.  This requires us to delete the



reply via email to

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