branch: externals/elpa
commit 2b61a3bf70d340c1f865cde91cc1228cdb13af1f
Author: João Távora <joaotav...@gmail.com>
Commit: João Távora <joaotav...@gmail.com>

    Delete two useless forward declarations
    
    * eglot.el (eglot-mode, eglot-editing-mode-map): Remove forward decls.
---
 eglot.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/eglot.el b/eglot.el
index bb0427a..f25c7bd 100644
--- a/eglot.el
+++ b/eglot.el
@@ -46,9 +46,6 @@
 (defvar eglot--processes-by-project (make-hash-table :test #'equal)
   "Keys are projects.  Values are lists of processes.")
 
-(defvar eglot-editing-mode) ; forward decl
-(defvar eglot-mode) ; forward decl
-
 (defvar-local eglot--special-buffer-process nil
   "Current buffer's eglot process.")
 
@@ -643,7 +640,8 @@ running.  INTERACTIVE is t if called interactively."
                      (forward-char
                       (min (plist-get pos-plist :character)
                            (- (line-end-position)
-                              (line-beginning-position)))))))
+                              (line-beginning-position))))
+                     (point))))
           (cl-loop for diag-spec across diagnostics
                    collect (cl-destructuring-bind (&key range severity
                                                         _code _source message)

Reply via email to