Skip to content

Commit bb032f1

Browse files
committed
added Resultdock Menu
1 parent e5df741 commit bb032f1

File tree

5 files changed

+480
-8
lines changed

5 files changed

+480
-8
lines changed

src/MultiReplacePanel.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6093,6 +6093,9 @@ void MultiReplace::handleFindAllButton()
60936093
ResultDock& dock = ResultDock::instance();
60946094
dock.ensureCreatedAndVisible(nppData);
60956095

6096+
// 2a) clear DochWindow
6097+
if (dock.isPurgeEnabled()) dock.clear();
6098+
60966099
// 3) helper lambdas
60976100
auto sciSend = [this](UINT m, WPARAM w = 0, LPARAM l = 0) -> LRESULT
60986101
{ return ::SendMessage(_hScintilla, m, w, l); };

src/MultiReplacePanel.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ class MultiReplace : public StaticDialog
459459
void loadListFromCsv(const std::wstring& filePath); // used in DropTarget.cpp
460460
void showListFilePath();
461461
void initializeDragAndDrop();
462+
std::wstring getLangStr(const std::wstring& id, const std::vector<std::wstring>& replacements = {});
462463

463464
protected:
464465
virtual INT_PTR CALLBACK run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam) override;
@@ -888,7 +889,7 @@ class MultiReplace : public StaticDialog
888889
void loadLanguage();
889890
void loadLanguageFromIni(const std::wstring& iniFilePath, const std::wstring& languageCode);
890891
std::wstring getLanguageFromNativeLangXML();
891-
std::wstring getLangStr(const std::wstring& id, const std::vector<std::wstring>& replacements = {});
892+
892893
LPCWSTR getLangStrLPCWSTR(const std::wstring& id);
893894
LPWSTR getLangStrLPWSTR(const std::wstring& id);
894895

0 commit comments

Comments
 (0)