]> git.lizzy.rs Git - micro.git/blobdiff - runtime/help/tutorial.md
Add new plugin runtime function
[micro.git] / runtime / help / tutorial.md
index 825be842c4acfca2f87984f8b3953a1dad3bee64..b9ef6f69c9c3c1084ae48f9f85f307d21155cf2e 100644 (file)
@@ -80,7 +80,7 @@ You can do that by putting the following in `init.lua`:
 function gorun()
     local buf = CurView().Buf -- The current buffer
     if buf:FileType() == "go" then
-        HandleShellCommand("go run " .. buf.Path, true) -- true means don't run it in the background
+        HandleShellCommand("go run " .. buf.Path, true, true) -- the first true means don't run it in the background
     end
 end