aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Távora2025-02-11 16:14:43 +0000
committerJoão Távora2025-02-11 16:14:43 +0000
commit3e699b3047af70bc8d30e21b295b98dbd6797e9c (patch)
tree33d246bd7a0ae953a3624edf792c38f0085cb610
parent9d2d8a4d39441ad9de3862164aa57dbdf5874baf (diff)
downloademacs-3e699b3047af70bc8d30e21b295b98dbd6797e9c.tar.gz
emacs-3e699b3047af70bc8d30e21b295b98dbd6797e9c.zip
Eglot: fix thinko in previous commit
* lisp/progmodes/eglot.el (eglot--hierarchy-1): 'roots' is a vector.
-rw-r--r--lisp/progmodes/eglot.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index eb9ce613afb..2deeef9bce1 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -4532,7 +4532,8 @@ If NOERROR, return predicate, else erroring function."
4532 server 4532 server
4533 preparer 4533 preparer
4534 (eglot--TextDocumentPositionParams)))) 4534 (eglot--TextDocumentPositionParams))))
4535 (unless roots (eglot--error "No hierarchy information here")) 4535 (unless (cl-plusp (length roots))
4536 (eglot--error "No hierarchy information here"))
4536 (with-current-buffer (get-buffer-create name) 4537 (with-current-buffer (get-buffer-create name)
4537 (eglot-hierarchy-mode) 4538 (eglot-hierarchy-mode)
4538 (setq-local 4539 (setq-local