aboutsummaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorterminaldweller <devi@terminaldweller.com>2024-07-30 23:55:52 +0000
committerterminaldweller <devi@terminaldweller.com>2024-07-30 23:55:52 +0000
commitfd65e952b4443b9e516a9f4f8668aac9dc27cd48 (patch)
treee1608c29390c9757e46c7724e9e9ce19c24b70cd /main.go
parent* fixed a crash when unloading a lua script (diff)
downloadmilla-fd65e952b4443b9e516a9f4f8668aac9dc27cd48.tar.gz
milla-fd65e952b4443b9e516a9f4f8668aac9dc27cd48.zip
* fixed a bug where we would end up with an unwanted whitespace at the
beginning of all args passed to the custom lua commands * added some notes to the readme
Diffstat (limited to 'main.go')
-rw-r--r--main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.go b/main.go
index 05133c0..e04bb85 100644
--- a/main.go
+++ b/main.go
@@ -558,6 +558,7 @@ func runCommand(
luaArgs = strings.TrimSpace(luaArgs)
luaArgs = strings.TrimPrefix(luaArgs, "/")
luaArgs = strings.TrimPrefix(luaArgs, args[0])
+ luaArgs = strings.TrimSpace(luaArgs)
result := RunLuaFunc(args[0], luaArgs, client, appConfig)
client.Cmd.Reply(event, result)