[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/eglot f006162629: Fix #865: Don't strip invisible text
From: |
ELPA Syncer |
Subject: |
[elpa] externals/eglot f006162629: Fix #865: Don't strip invisible text when formatting hover string |
Date: |
Thu, 10 Mar 2022 06:57:28 -0500 (EST) |
branch: externals/eglot
commit f006162629a99c007572906147e3fb8c2b6e0ae3
Author: Augusto Stoffel <astoff@users.noreply.github.com>
Commit: GitHub <noreply@github.com>
Fix #865: Don't strip invisible text when formatting hover string
This was introduced in #482 due to a bad interaction with a specific
server. But this solution makes hyperlinks in Eldoc buffers
unclickable, because the markdown-mode function that visits a link
relies on the invisible text.
Per #866
* eglot.el (eglot--format-markup): Use buffer-string instead of
filter-buffer-substring
---
eglot.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eglot.el b/eglot.el
index 7bff005973..b84e1449d7 100644
--- a/eglot.el
+++ b/eglot.el
@@ -1436,7 +1436,7 @@ Doubles as an indicator of snippet support."
(message-log-max nil))
(ignore-errors (delay-mode-hooks (funcall mode))))
(font-lock-ensure)
- (string-trim (filter-buffer-substring (point-min) (point-max))))))
+ (string-trim (buffer-string)))))
(define-obsolete-variable-alias 'eglot-ignored-server-capabilites
'eglot-ignored-server-capabilities "1.8")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/eglot f006162629: Fix #865: Don't strip invisible text when formatting hover string,
ELPA Syncer <=