fix split multiple directories GOPATH problem (windows)

This commit is contained in:
galaxian 2015-08-11 19:27:44 +08:00 committed by syl20bnr
parent a1b2b230ba
commit 064f201914

View file

@ -22,7 +22,10 @@
(defun load-gopath-file(gopath name)
"Search for NAME file in all paths referenced in GOPATH."
(let ((paths (split-string gopath ":"))
(if (eq system-type 'windows-nt)
(setq sep '";")
(setq sep '":"))
(let ((paths (split-string gopath sep))
found)
(loop for p in paths
for file = (concat p name) when (file-exists-p file)