Skip to content

Commit fc3bae9

Browse files
authored
Merge pull request #17 from vconcat/master
Update go-playground.el
2 parents ede417a + 9b5f309 commit fc3bae9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

go-playground.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ By default confirmation required."
6767
:type 'file
6868
:group 'go-playground)
6969

70-
(defcustom go-playground-go-compiler-args "run *.go"
70+
(defcustom go-playground-go-compiler-args "run ./"
7171
"The arguments that passed to `go` compiler."
7272
:type 'string
7373
:group 'go-playground)
@@ -105,8 +105,8 @@ environment like \"GO111MODULE=on go\")."
105105
(go-playground-ask-file-name
106106
(read-string "Go Playground filename: "))
107107
("snippet")))
108-
(snippet-dir (go-playground-snippet-unique-dir file-name)))
109-
(cd snippet-dir)
108+
(snippet-dir (go-playground-snippet-unique-dir file-name))
109+
(default-directory snippet-dir))
110110
(shell-command go-playground-init-command)
111111
(concat snippet-dir "/" file-name ".go")))
112112

0 commit comments

Comments
 (0)