diff --git a/aux-addon.toc b/aux-addon.toc index f8f1948..0c31275 100644 --- a/aux-addon.toc +++ b/aux-addon.toc @@ -4,7 +4,6 @@ ## Notes: Auction House replacement ## SavedVariables: aux, aux_scale, aux_post_bid, aux_ignore_owner, aux_items, aux_item_ids, aux_auctionable_items, aux_merchant_buy, aux_merchant_sell -libs\inspect.lua libs\module.lua libs\T.lua diff --git a/libs/inspect.lua b/libs/inspect.lua deleted file mode 100644 index dfa2eaf..0000000 --- a/libs/inspect.lua +++ /dev/null @@ -1,77 +0,0 @@ -local format_key, format_value, print, print_pair, print_table - -function print(msg) - DEFAULT_CHAT_FRAME:AddMessage(msg, 1, 0, 0) -end - -function format_key(k) - return type(k) == 'string' and k or '[' .. tostring(k) .. ']' -end - -function format_value(v) - return type(v) == 'string' and '"' .. v .. '"' or tostring(v) -end - -function print_table(t, depth) - for i, v in ipairs(t) do - print_pair(i, v, depth) - end - for k, v in pairs(t) do - if type(k) ~= 'number' or k < 1 or k > getn(t) then - print_pair(k, v, depth) - end - end -end - -local max_depth - -function print_pair(k, v, depth) - local padding = strrep(' ', depth * 4) - print(padding .. format_key(k) .. ' = ' .. format_value(v)) - if type(v) == 'table' then - if next(v) then - print(padding .. '{') - if depth == max_depth then - print(padding .. ' ...') - else - print_table(v, depth + 1) - end - print(padding .. '}') - end - end -end - -function inspect(_, ...) - local n = arg.n - arg.n = nil - table.setn(arg, n) - max_depth = max_depth or 2 - print_table(arg, 0) - max_depth = nil - return unpack(arg) -end - -local function setting(v) - if type(v) == 'number' then - max_depth = v - elseif type(v) == 'function' then - print('#' .. v()) - else - print('#' .. v) - end -end - -local mt = {__metatable=false, __call=inspect, __div=inspect} - -function mt:__index(key) - setting(key) - return self -end - -function mt:__newindex(key, value) - setting(key) - self(value) - return self -end - -p = setmetatable({}, mt) \ No newline at end of file diff --git a/tabs/search/results.lua b/tabs/search/results.lua index 1cad0a7..c9b6efe 100644 --- a/tabs/search/results.lua +++ b/tabs/search/results.lua @@ -325,7 +325,7 @@ function M.execute(resume, real_time) if resume then current_search.table:SetSelectedRecord() else - if filter_string ~= current_search.filter_string or first_page ~= current_search.first_page or last_page ~= current_search.last_page or real_time ~= current_search.real_time then + if filter_string ~= current_search.filter_string then if current_search.filter_string then new_search(filter_string, first_page, last_page, real_time) else