Skip to content

Commit

Permalink
SetGrepFolderを削除
Browse files Browse the repository at this point in the history
  • Loading branch information
dep5 committed Jun 10, 2022
1 parent c757add commit 3eef9f1
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions sakura_core/dlg/CDlgGrep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,15 +259,18 @@ int CDlgGrep::DoModal( HINSTANCE hInstance, HWND hwndParent, const WCHAR* pszCur
if( m_szFile[0] == L'\0' && m_pShareData->m_sSearchKeywords.m_aGrepFiles.size() ){
wcscpy( m_szFile, m_pShareData->m_sSearchKeywords.m_aGrepFiles[0] ); /* 検索ファイル */
}
if( m_pShareData->m_Common.m_sSearch.m_bGrepDefaultFolder && m_szCurrentFilePath[0] != L'\0' ){
WCHAR szWorkFile[MAX_PATH];
SplitPath_FolderAndFile( m_szCurrentFilePath, m_szFolder, szWorkFile );
SetGrepFolder( GetItemHwnd(IDC_COMBO_FOLDER), m_szFolder );
}else
if( m_szFolder[0] == L'\0' && m_pShareData->m_sSearchKeywords.m_aGrepFolders.size() ){
wcscpy( m_szFolder, m_pShareData->m_sSearchKeywords.m_aGrepFolders[0] ); /* 検索フォルダー */

/* 検索フォルダー */
if( m_szFolder[0] == L'\0' ){
if( m_pShareData->m_Common.m_sSearch.m_bGrepDefaultFolder && m_szCurrentFilePath[0] != L'\0' ){
WCHAR szWorkFile[MAX_PATH];
SplitPath_FolderAndFile( m_szCurrentFilePath, m_szFolder, szWorkFile );
}
else if( m_pShareData->m_sSearchKeywords.m_aGrepFolders.size() ){
wcscpy( m_szFolder, m_pShareData->m_sSearchKeywords.m_aGrepFolders[0] );
}
}

/* 除外ファイル */
if (m_szExcludeFile[0] == L'\0') {
if (m_pShareData->m_sSearchKeywords.m_aExcludeFiles.size()) {
Expand Down

0 comments on commit 3eef9f1

Please sign in to comment.