From eebb1fec2177bc85b746b948beac873a77bea4a2 Mon Sep 17 00:00:00 2001 From: Alexander Grafov Date: Thu, 26 Jan 2017 23:40:33 +0300 Subject: [PATCH] Fix wrong check on program exec. --- go-playground.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/go-playground.el b/go-playground.el index 97ab702..dd264dd 100644 --- a/go-playground.el +++ b/go-playground.el @@ -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 ()