From 3ed6ac9ef23c26371bd3ccb694e45ed3a99105b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 15 Jul 2021 21:03:35 +0800 Subject: merge `lua.config` request --- script/client.lua | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/script/client.lua b/script/client.lua index 0778c08d..12020fe5 100644 --- a/script/client.lua +++ b/script/client.lua @@ -129,12 +129,10 @@ function m.setConfig(changes, onlyMemory) return end if m.getOption 'changeConfiguration' then - for _, change in ipairs(finalChanges) do - proto.notify('$/command', { - command = 'lua.config', - data = change, - }) - end + proto.notify('$/command', { + command = 'lua.config', + data = finalChanges, + }) else local messages = {} messages[1] = lang.script('WINDOW_CLIENT_NOT_SUPPORT_CONFIG') -- cgit v1.2.3