Skip to content

Commit cee6d61

Browse files
authored
Merge pull request #131 from xiliuya/eglot-tmp-buffer-fix
2 parents 70a2432 + 3995a7b commit cee6d61

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gdscript-eglot.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,15 @@ https://lists.gnu.org/archive/html/bug-gnu-emacs/2023-04/msg01070.html."
6161
cfg-dir)))
6262
(port
6363
(with-current-buffer cfg-buffer
64+
(goto-char 0)
6465
(and
6566
(re-search-forward
6667
(rx "network/language_server/remote_port"
6768
(* space) ?= (* space)
6869
(group (+ digit)))
6970
nil t)
7071
(string-to-number (match-string 1))))))
72+
(kill-buffer cfg-buffer)
7173
;; then return the host-port list when found
7274
(and port (list "localhost" port)))))
7375

0 commit comments

Comments
 (0)