Skip to content

Commit 45dafef

Browse files
committed
[FIX] : exclude ".." directory from the search filtering
1 parent 6fa1a7b commit 45dafef

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ImGuiFileDialog.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,8 @@ namespace IGFD
647647
{
648648
if (!vTag.empty())
649649
{
650+
if (fileName_optimized == "..") return true;
651+
650652
return
651653
fileName_optimized.find(vTag) != std::string::npos || // first try wihtout case and accents
652654
fileName.find(vTag) != std::string::npos; // second if searched with case and accents

0 commit comments

Comments
 (0)