Fix recursive issue with go plugin

This commit is contained in:
Zachary Yedidia
2016-08-16 13:46:33 -04:00
parent ed31d37e74
commit b42aba05a0
2 changed files with 2 additions and 4 deletions

View File

@@ -19,7 +19,6 @@ function onSave()
end
function gofmt()
CurView():Save()
local handle = io.popen("gofmt -w " .. CurView().Buf.Path)
local result = handle:read("*a")
handle:close()
@@ -28,7 +27,6 @@ function gofmt()
end
function goimports()
CurView():Save()
local handle = io.popen("goimports -w " .. CurView().Buf.Path)
local result = split(handle:read("*a"), ":")
handle:close()