* eglot.el (eglot--guess-contact): Fix bug in (host port) connection
case.
GitHub-reference: fix https://github.com/joaotavora/eglot/issues/446
(class (or (and (consp guess) (symbolp (car guess))
(prog1 (car guess) (setq guess (cdr guess))))
'eglot-lsp-server))
- (program (and (listp guess) (stringp (car guess)) (car guess)))
+ (program (and (listp guess)
+ (stringp (car guess)) (stringp (cadr guess)) (car guess)))
(base-prompt
(and interactive
"Enter program to execute (or <host>:<port>): "))