tag: 1.2
commit 7f1a0e33e15781a56df0edc2ac0d8ea12ce93283
Author: João Távora <[email protected]>
Commit: João Távora <[email protected]>

    * 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