From 73a0febcb2cf7cb9d0551b7f21b753427dbec2a4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mikl=C3=B3s=20T=C3=B3th?= <tothmiklostibor@gmail.com>
Date: Mon, 10 May 2021 04:05:37 +0200
Subject: [PATCH] fix

---
 plab/flatten/function.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/plab/flatten/function.go b/plab/flatten/function.go
index e04e120..8deb0b1 100644
--- a/plab/flatten/function.go
+++ b/plab/flatten/function.go
@@ -65,6 +65,10 @@ func InlineAllFuncs(str string) (string, error) {
 				argStop++
 			}
 
+			if argsStart == argStop {
+				argStop++
+			}
+
 			inlined := f.Inline(args...)
 			soFar.WriteString("\n")
 			soFar.WriteString(inlined)
-- 
GitLab