From 09abbad3d7cc7465c349a0773ae22a5b45ac304d Mon Sep 17 00:00:00 2001 From: Don Ho Date: Fri, 28 Mar 2025 20:17:28 +0100 Subject: [PATCH] Fix -pluginMessage needing filename to work. Remove filename restriction for -pluginMessage. Fix #16273, close #16340 --- PowerEditor/src/winmain.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PowerEditor/src/winmain.cpp b/PowerEditor/src/winmain.cpp index 6278318f3..26af5f6ff 100644 --- a/PowerEditor/src/winmain.cpp +++ b/PowerEditor/src/winmain.cpp @@ -587,7 +587,8 @@ int WINAPI wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE /*hPrevInstance } ::SetForegroundWindow(hNotepad_plus); - if (params.size() > 0) //if there are files to open, use the WM_COPYDATA system + if (params.size() > 0 // if there are files to open, use the WM_COPYDATA system + || !cmdLineParams._pluginMessage.empty()) // or pluginMessage is present, use the WM_COPYDATA system as well { CmdLineParamsDTO dto = CmdLineParamsDTO::FromCmdLineParams(cmdLineParams);