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?
This commit is contained in:
Crum
2018-07-24 20:55:09 -05:00
parent bb5ef6327c
commit 1eb33cf509
@@ -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