From 1eb33cf5093653dc5d47c6eb8ed96db08c1058b8 Mon Sep 17 00:00:00 2001 From: Crum Date: Tue, 24 Jul 2018 20:55:09 -0500 Subject: [PATCH] temp fix gmatch in AceConfigCmd-3.0.lua (ElvUI_Config not loading) https://github.com/ElvUI-Vanilla/ElvUI/commit/11ea55b1a5c54883ed4f42bdbe110d05ba26ffc8#diff-947b626a59f99755e258be6d7a6463b3R564 @Loaal I could not load ElvUI_Config because I kept getting "too many upvalues (limit=32)". Maybe you have better solution? --- .../AceConfig-3.0/AceConfigCmd-3.0/AceConfigCmd-3.0.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ElvUI_Config/Libraries/AceConfig-3.0/AceConfigCmd-3.0/AceConfigCmd-3.0.lua b/ElvUI_Config/Libraries/AceConfig-3.0/AceConfigCmd-3.0/AceConfigCmd-3.0.lua index 13c3a13..3e40494 100644 --- a/ElvUI_Config/Libraries/AceConfig-3.0/AceConfigCmd-3.0/AceConfigCmd-3.0.lua +++ b/ElvUI_Config/Libraries/AceConfig-3.0/AceConfigCmd-3.0/AceConfigCmd-3.0.lua @@ -29,7 +29,7 @@ local AceConsoleName = "AceConsole-3.0" -- Lua APIs local strsub, strsplit, strlower, strmatch, strtrim = string.sub, string.split, string.lower, string.match, string.trim -local strgsub, strupper, strfind, strlen, strbyte, strgmatch = string.gsub, string.upper, string.find, string.len, string.byte, string.gmatch +local strgsub, strupper, strfind, strlen, strbyte = string.gsub, string.upper, string.find, string.len, string.byte local format, tonumber, tostring = string.format, tonumber, tostring local tsort, tinsert, getn = table.sort, table.insert, table.getn local fmod = math.fmod @@ -561,7 +561,7 @@ local function handle(info, inputpos, tab, depth, retfalse) --parse for =on =off =default in the process --table will be key = true for options that should toggle, key = [on|off|default] for options to be set local sels = {} - for v in strgmatch(str, "[^ ]+") do + for v in string.gmatch(str, "[^ ]+") do --parse option=on etc local _, _, opt, val = strfind(v, '(.+)=(.+)') --get option if toggling