Skip to content

Commit

Permalink
Fix #865: Don't strip invisible text when formatting hover string
Browse files Browse the repository at this point in the history
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
#865: joaotavora/eglot#865
#482: joaotavora/eglot#482
#866: joaotavora/eglot#866
  • Loading branch information
astoff committed Mar 10, 2022
1 parent b2b658a commit b2966c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lisp/progmodes/eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit b2966c8

Please sign in to comment.