From: João Távora Date: Fri, 23 Nov 2018 00:11:44 +0000 (+0000) Subject: * eglot.el (eglot-completion-at-point): less chatter. X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~392 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=95d48a3576400d2ffe4de1747f9a0794eb00f6ba;p=emacs.git * eglot.el (eglot-completion-at-point): less chatter. --- 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