Eglot: fix thinko in previous commit

* lisp/progmodes/eglot.el (eglot--hierarchy-1): 'roots' is a
vector.
This commit is contained in:
João Távora 2025-02-11 16:14:43 +00:00
parent 9d2d8a4d39
commit 3e699b3047

View file

@ -4532,7 +4532,8 @@ If NOERROR, return predicate, else erroring function."
server
preparer
(eglot--TextDocumentPositionParams))))
(unless roots (eglot--error "No hierarchy information here"))
(unless (cl-plusp (length roots))
(eglot--error "No hierarchy information here"))
(with-current-buffer (get-buffer-create name)
(eglot-hierarchy-mode)
(setq-local