Skip to content

Commit

Permalink
search strings are 3-indexed
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Apr 4, 2024
1 parent dfe5f62 commit 17fd3aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ local function upperSection()
if ckpos ~= nil then
local strend = input:find("[;]", ckpos+1)
if strend == nil then strend = #input else strend = strend-1 end
foundck = input:sub(ckpos + 4, strend)
foundck = input:sub(ckpos + 3, strend)
end
searchentry.Title = foundtitle
searchentry.Subtitle = foundsubtitle
Expand Down
2 changes: 1 addition & 1 deletion src/Etterna/Actor/Menus/MusicWheel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ MusicWheel::FilterBySearch(std::vector<Song*>& inv, std::string findme)
}
if (ck != std::string::npos) {
findck = findme.substr(
ck + 4, findme.find(static_cast<char>(ck), ';') - ck);
ck + 3, findme.find(static_cast<char>(ck), ';') - ck);
}
}

Expand Down

0 comments on commit 17fd3aa

Please sign in to comment.