Skip to content

Commit

Permalink
Merge pull request #97 from Grimpper/fix-infopath
Browse files Browse the repository at this point in the history
fix: filter nil values when parsing INFOPATH
  • Loading branch information
purcell authored Jan 10, 2025
2 parents 60f5091 + 8fc2264 commit 2b818ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion envrc.el
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,8 @@ also appear in PAIRS."
(eshell-set-path path)
(setq-local eshell-path-env path)))
(when-let ((info-path (getenv-internal "INFOPATH" env)))
(setq-local Info-directory-list (parse-colon-path info-path)))))))
(setq-local Info-directory-list
(seq-filter #'identity (parse-colon-path info-path))))))))

(defun envrc--update-env (env-dir)
"Refresh the state of the direnv in ENV-DIR and apply in all relevant buffers."
Expand Down

0 comments on commit 2b818ca

Please sign in to comment.