Skip to content

Commit

Permalink
Don't skip same name in input combobox.
Browse files Browse the repository at this point in the history
  • Loading branch information
quyykk committed Sep 17, 2023
1 parent db6d07c commit 26d568a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/imgui_ex.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ IMGUI_API bool ImGui::InputCombo(const char *label, std::string *input, T **elem
const double scoreCutoff = .75;
for(const auto &it : elements)
{
if(!IsValid(it.second, 0) || (sort && !sort(it.first)) || *input == it.first)
if(!IsValid(it.second, 0) || (sort && !sort(it.first)))
continue;

const double score = scorer.similarity(it.first, scoreCutoff);
Expand Down

0 comments on commit 26d568a

Please sign in to comment.