From fd501da2b32a923ce08401669a58f97215823454 Mon Sep 17 00:00:00 2001 From: donho Date: Sat, 8 Dec 2007 19:15:42 +0000 Subject: [PATCH] [CHANGE_BEHAVIOUR] Change Find in files behaviour : all the hidden directory won't be searched (for example : .svn). git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@80 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/Notepad_plus.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index a809d5088..fc67d6929 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -1016,7 +1016,11 @@ void Notepad_plus::getMatchedFileNames(const char *dir, const vector & p if (foundData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) { - if (isRecursive) + if (foundData.dwFileAttributes & FILE_ATTRIBUTE_HIDDEN) + { + // branles rien + } + else if (isRecursive) { if ((strcmp(foundData.cFileName, ".")) && (strcmp(foundData.cFileName, ".."))) { @@ -1039,10 +1043,13 @@ void Notepad_plus::getMatchedFileNames(const char *dir, const vector & p } while (::FindNextFile(hFile, &foundData)) { - if (foundData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) { - if (isRecursive) + if (foundData.dwFileAttributes & FILE_ATTRIBUTE_HIDDEN) + { + // branles rien + } + else if (isRecursive) { if ((strcmp(foundData.cFileName, ".")) && (strcmp(foundData.cFileName, ".."))) {