From 6aa4e1710caaf38a2460296bb64ecdc6a91eb86d Mon Sep 17 00:00:00 2001 From: YX Hao Date: Tue, 30 Jul 2024 18:59:58 +0800 Subject: [PATCH] add active notepad2 derivations to built-in open-by app list to utilize `/mr` --- src/SearchDlg.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SearchDlg.cpp b/src/SearchDlg.cpp index 9c9e85fd..7d259d25 100644 --- a/src/SearchDlg.cpp +++ b/src/SearchDlg.cpp @@ -3249,7 +3249,9 @@ void CSearchDlg::OpenFileAtListIndex(int listIndex) paramsSuffix = CStringUtils::Format(L"/%s/%s\"", line.c_str(), move.c_str()); bDontQuotePath = TRUE; } - else if (appname.find(L"notepad2.exe") != std::wstring::npos) + else if ((appname.find(L"notepad4.exe") != std::wstring::npos) || + (appname.find(L"notepad3.exe") != std::wstring::npos) || + (appname.find(L"notepad2.exe") != std::wstring::npos)) { std::wstring match; if (!pInfo->matchLinesMap.empty())