[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/eglot 8219088 12/16: Close #34: Handle outrageously lar
From: |
João Távora |
Subject: |
[elpa] externals/eglot 8219088 12/16: Close #34: Handle outrageously large and buggy line numbers |
Date: |
Mon, 9 Jul 2018 17:27:14 -0400 (EDT) |
branch: externals/eglot
commit 82190885fdd16807101e709584f387d077889137
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>
Close #34: Handle outrageously large and buggy line numbers
* eglot.el (eglot--lsp-position-to-point): Truncate line number to
most-positive-fixnum.
---
eglot.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/eglot.el b/eglot.el
index 8cad3ad..509fe6c 100644
--- a/eglot.el
+++ b/eglot.el
@@ -602,7 +602,8 @@ CONNECT-ARGS are passed as additional arguments to
"Convert LSP position POS-PLIST to Emacs point.
If optional MARKER, return a marker instead"
(save-excursion (goto-char (point-min))
- (forward-line (plist-get pos-plist :line))
+ (forward-line (min most-positive-fixnum
+ (plist-get pos-plist :line)))
(forward-char (min (plist-get pos-plist :character)
(- (line-end-position)
(line-beginning-position))))
- [elpa] externals/eglot c94b028 04/16: Fix some rather silly bugs in some interactive specs, (continued)
- [elpa] externals/eglot c94b028 04/16: Fix some rather silly bugs in some interactive specs, João Távora, 2018/07/09
- [elpa] externals/eglot a6fee46 09/16: Fix typo (#35), João Távora, 2018/07/09
- [elpa] externals/eglot 7467c15 11/16: Close #36: Inhibit auto-reconnect until connection is established, João Távora, 2018/07/09
- [elpa] externals/eglot a261a7b 10/16: Close #33: Bind default-directory when launching servers, João Távora, 2018/07/09
- [elpa] externals/eglot 543483a 13/16: Close #37: Unbreak completion when no possible annotation, João Távora, 2018/07/09
- [elpa] externals/eglot 1a61522 08/16: Close #32: Cache buffer's managing server, João Távora, 2018/07/09
- [elpa] externals/eglot 37296ed 14/16: Format documentation in completion annotations, João Távora, 2018/07/09
- [elpa] externals/eglot 45c651e 06/16: Per #31: Unbreak basic imenu functionality, João Távora, 2018/07/09
- [elpa] externals/eglot a99e129 03/16: Adjust timeout strategy when running tests, João Távora, 2018/07/09
- [elpa] externals/eglot 017fbdc 07/16: Close #31: Unbreak Imenu for cquery servers (and probably more), João Távora, 2018/07/09
- [elpa] externals/eglot 8219088 12/16: Close #34: Handle outrageously large and buggy line numbers,
João Távora <=
- [elpa] externals/eglot 55ee8e9 15/16: * eglot.el (eglot-completion-at-point): Fix broken indentation, João Távora, 2018/07/09
- [elpa] externals/eglot 4354710 01/16: Implement TCP autostart/autoconnect (and support Ruby's Solargraph), João Távora, 2018/07/09
- [elpa] externals/eglot 07b235f 16/16: jsonrpc.el is now a GNU ELPA depedency, João Távora, 2018/07/09