[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:
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);
|
::SendMessage(_hSelf, NPPM_HIDETABBAR, 0, TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
::ShowWindow(_hSelf, nppGUI._isMaximized?SW_MAXIMIZE:SW_SHOW);
|
|
||||||
|
|
||||||
if (nppGUI._rememberLastSession && !cmdLineParams->_isNoSession)
|
if (nppGUI._rememberLastSession && !cmdLineParams->_isNoSession)
|
||||||
{
|
{
|
||||||
loadLastSession();
|
loadLastSession();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
::ShowWindow(_hSelf, nppGUI._isMaximized?SW_MAXIMIZE:SW_SHOW);
|
||||||
|
|
||||||
if (cmdLine)
|
if (cmdLine)
|
||||||
{
|
{
|
||||||
loadCommandlineParams(cmdLine, cmdLineParams);
|
loadCommandlineParams(cmdLine, cmdLineParams);
|
||||||
|
@ -1011,6 +1011,7 @@ void ScintillaEditView::restyleBuffer() {
|
|||||||
|
|
||||||
void ScintillaEditView::styleChange() {
|
void ScintillaEditView::styleChange() {
|
||||||
defineDocType(_currentBuffer->getLangType());
|
defineDocType(_currentBuffer->getLangType());
|
||||||
|
restyleBuffer();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScintillaEditView::activateBuffer(BufferID buffer)
|
void ScintillaEditView::activateBuffer(BufferID buffer)
|
||||||
|
Loading…
Reference in New Issue
Block a user