Skip to content

Commit 52c028a

Browse files
github-actions[bot]Blitz54LocalIdentity
authored
[pob2-port] Fix searching for Low Life in Config tab (#9914)
* Apply changes from PathOfBuildingCommunity/PathOfBuilding-PoE2#2326 * Remove rej file --------- Co-authored-by: Blitz54 <Blitz54@users.noreply.github.com> Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 17b1d08 commit 52c028a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/Classes/ConfigTab.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ local ConfigTabClass = newClass("ConfigTab", "UndoHandler", "ControlHost", "Cont
6565
local function searchMatch(varData)
6666
local searchStr = self.controls.search.buf:lower():gsub("[%-%.%+%[%]%$%^%%%?%*]", "%%%0")
6767
if searchStr and searchStr:match("%S") then
68-
local err, match = PCall(string.matchOrPattern, (varData.label or ""):lower(), searchStr)
68+
local label = StripEscapes(varData.label or ""):lower()
69+
local err, match = PCall(string.matchOrPattern, label, searchStr)
6970
if not err and match then
7071
return true
7172
end
@@ -755,7 +756,7 @@ function ConfigTabClass:Draw(viewPort, inputEvents)
755756
self.height = viewPort.height
756757

757758
for _, event in ipairs(inputEvents) do
758-
if event.type == "KeyDown" then
759+
if event.type == "KeyDown" then
759760
if event.key == "z" and IsKeyDown("CTRL") then
760761
self:Undo()
761762
self.build.buildFlag = true
@@ -817,7 +818,7 @@ function ConfigTabClass:Draw(viewPort, inputEvents)
817818
maxColY = m_max(maxColY, colY[col])
818819
end
819820
end
820-
821+
821822
local newSetList = { }
822823
for index, configSetId in ipairs(self.configSetOrderList) do
823824
local configSet = self.configSets[configSetId]

0 commit comments

Comments
 (0)