emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/eglot 633979e 38/54: Fix #361: abide by LSP when report


From: João Távora
Subject: [elpa] externals/eglot 633979e 38/54: Fix #361: abide by LSP when reporting and moving to columns
Date: Thu, 16 Apr 2020 05:31:51 -0400 (EDT)

branch: externals/eglot
commit 633979e63a5292d8332e7a892626c76783f38f69
Author: João Távora <address@hidden>
Commit: Felicián Németh <address@hidden>

    Fix #361: abide by LSP when reporting and moving to columns
    
    * eglot.el (eglot-current-column-function): Set to
    eglot-lsp-abiding-column.
    (eglot-move-to-column-function): Set to
    eglot-move-to-lsp-abiding-column.
---
 eglot.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eglot.el b/eglot.el
index 888eacc..cbfb926 100644
--- a/eglot.el
+++ b/eglot.el
@@ -999,7 +999,7 @@ CONNECT-ARGS are passed as additional arguments to
 
 (defun eglot-current-column () (- (point) (point-at-bol)))
 
-(defvar eglot-current-column-function #'eglot-current-column
+(defvar eglot-current-column-function #'eglot-lsp-abiding-column
   "Function to calculate the current column.
 
 This is the inverse operation of
@@ -1023,7 +1023,7 @@ for all others.")
          :character (progn (when pos (goto-char pos))
                            (funcall eglot-current-column-function)))))
 
-(defvar eglot-move-to-column-function #'eglot-move-to-column
+(defvar eglot-move-to-column-function #'eglot-move-to-lsp-abiding-column
   "Function to move to a column reported by the LSP server.
 
 According to the standard, LSP column/character offsets are based



reply via email to

[Prev in Thread] Current Thread [Next in Thread]