From e7adc5ed9b7b458adb26632eae0ce0526e82b44e Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Tue, 2 Aug 2016 02:31:33 +0200 Subject: [PATCH] bugfix --- tabs/search/frames.lua | 2 +- util/filter.lua | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/tabs/search/frames.lua b/tabs/search/frames.lua index 01dd62d..33601b8 100644 --- a/tabs/search/frames.lua +++ b/tabs/search/frames.lua @@ -553,7 +553,7 @@ Aux.search_tab.FRAMES(function(m, public, private) end do local label = Aux.gui.label(m.frame.filter, 13) - label:SetPoint('TOPLEFT', 350, -53) + label:SetPoint('TOPLEFT', 350, -40) label:SetWidth(300) label:SetJustifyH('LEFT') private.filter_display = label diff --git a/util/filter.lua b/util/filter.lua index 6153341..28722ad 100644 --- a/util/filter.lua +++ b/util/filter.lua @@ -541,11 +541,13 @@ function public.indented_post_query_string(components) for _, component in components do - if str ~= '' then - str = str..(no_line_break and ' ' or '|n') - end - for _=1,getn(stack) do - str = str..' ' + if no_line_break then + str = str..' ' + else + str = str..'|n' + for _=1,getn(stack) do + str = str..' ' + end end if component[1] == 'operator' and component[2] then