Skip to content

Commit

Permalink
Fix wrong check on program exec.
Browse files Browse the repository at this point in the history
  • Loading branch information
grafov committed Jan 26, 2017
1 parent 8365cac commit eebb1fe
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions go-playground.el
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,11 @@ By default confirmation required."
(defun go-playground-exec ()
"Save the buffer then runs Go compiler for executing the code."
(interactive)
(if (go-playground-inside)
(save-buffer t)
(make-local-variable 'compile-command)
(compile (concat go-command " run *.go"))))
(if (go-playground-inside)
(progn
(save-buffer t)
(make-local-variable 'compile-command)
(compile (concat go-command " run *.go")))))

;;;###autoload
(defun go-playground ()
Expand Down

0 comments on commit eebb1fe

Please sign in to comment.