From 95d48a3576400d2ffe4de1747f9a0794eb00f6ba Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Fri, 23 Nov 2018 00:11:44 +0000 Subject: [PATCH] * eglot.el (eglot-completion-at-point): less chatter. --- lisp/progmodes/eglot.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 9ff9cdf6f57..b408e59f25d 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/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 -- 2.39.2