Fix first envvar set by doom-load-envvar-file

Potentially fixes #2077
This commit is contained in:
Henrik Lissner 2019-11-19 19:09:44 -05:00
parent 24efd5b909
commit 304506edcc
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -441,7 +441,7 @@ in interactive sessions, nil otherwise (but logs a warning)."
(save-excursion
(insert "\n")
(insert-file-contents file))
(while (re-search-forward "\n *\\([^#][^= \n]*\\)=" nil t)
(while (re-search-forward "\n *\\([^#= \n]*\\)=" nil t)
(push (buffer-substring
(match-beginning 1)
(1- (or (save-excursion