diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index af8bc0582..32a1d01d3 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -3281,6 +3281,8 @@ void Notepad_plus::docOpenInNewInstance(FileTransferMode mode, int x, int y) command += pX; command += TEXT(" -y"); command += pY; + command += TEXT(" -l"); + command += ScintillaEditView::langNames[buf->getLangType()].lexerName; Command cmd(command); cmd.run(_pPublicInterface->getHSelf());