]> git.eshelyaron.com Git - emacs.git/commitdiff
* eglot.el (eglot-completion-at-point): less chatter.
authorJoão Távora <joaotavora@gmail.com>
Fri, 23 Nov 2018 00:11:44 +0000 (00:11 +0000)
committerJoão Távora <joaotavora@gmail.com>
Fri, 23 Nov 2018 00:11:44 +0000 (00:11 +0000)
lisp/progmodes/eglot.el

index 9ff9cdf6f57ed62f5a962eaceb75611176300f2a..b408e59f25d5996fa7bdf80dae00f2c3dec37031 100644 (file)
@@ -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