[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
This commit is contained in:
donho 2008-06-19 23:55:18 +00:00
parent 15a335da5f
commit bae3eb5bda
2 changed files with 3 additions and 2 deletions

View File

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

View File

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