[BUG_FIXED] Fix the User Language Define Dialog don't update current document.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@244 f5eea248-9336-0410-98b8-ebc06183d4e3
pull/343/head^2
donho 17 years ago
parent 15a335da5f
commit bae3eb5bda

@ -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);

@ -1011,6 +1011,7 @@ void ScintillaEditView::restyleBuffer() {
void ScintillaEditView::styleChange() {
defineDocType(_currentBuffer->getLangType());
restyleBuffer();
}
void ScintillaEditView::activateBuffer(BufferID buffer)

Loading…
Cancel
Save