diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index be6951b4b..021d7235b 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -264,13 +264,13 @@ void Notepad_plus::init(HINSTANCE hInst, HWND parent, const char *cmdLine, CmdLi ::SendMessage(_hSelf, NPPM_HIDETABBAR, 0, TRUE); } - ::ShowWindow(_hSelf, nppGUI._isMaximized?SW_MAXIMIZE:SW_SHOW); - if (nppGUI._rememberLastSession && !cmdLineParams->_isNoSession) { loadLastSession(); } + ::ShowWindow(_hSelf, nppGUI._isMaximized?SW_MAXIMIZE:SW_SHOW); + if (cmdLine) { loadCommandlineParams(cmdLine, cmdLineParams); diff --git a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp index f0515534c..fdc3c677f 100644 --- a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp +++ b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp @@ -1011,6 +1011,7 @@ void ScintillaEditView::restyleBuffer() { void ScintillaEditView::styleChange() { defineDocType(_currentBuffer->getLangType()); + restyleBuffer(); } void ScintillaEditView::activateBuffer(BufferID buffer)