From 37c0ffcf949d9d559946b10005346da4ae70c182 Mon Sep 17 00:00:00 2001 From: "Serge A. Zaitsev" Date: Sun, 30 Aug 2015 15:29:12 +0200 Subject: [PATCH] passing globals when running a plugin --- zs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zs.go b/zs.go index f38dbf5..534d516 100644 --- a/zs.go +++ b/zs.go @@ -309,7 +309,7 @@ func main() { case "timetoread": fmt.Println(TimeToRead(args)) default: - err := run(path.Join(ZSDIR, cmd), args, Vars{}, os.Stdout) + err := run(path.Join(ZSDIR, cmd), args, globals(), os.Stdout) if err != nil { log.Println("ERROR:", err) } -- 2.43.0