From e4b0b8c0b5377fed557c8219ed246e74b68707de Mon Sep 17 00:00:00 2001 From: Rikk Date: Wed, 12 Aug 2015 20:49:53 -0300 Subject: [PATCH] Fix: manually selected language not persistent when opening file in a new instance --- PowerEditor/src/Notepad_plus.cpp | 2 ++ 1 file changed, 2 insertions(+) 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());