Fix bug with no titlebar if no session is loaded.
Fix bug where not enough stylebits are set on a document. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@262 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
b2a99264f4
commit
84bd5081b0
@ -6273,6 +6273,8 @@ LRESULT Notepad_plus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa
|
|||||||
//Load initial docs into doctab
|
//Load initial docs into doctab
|
||||||
loadBufferIntoView(_mainEditView.getCurrentBufferID(), MAIN_VIEW);
|
loadBufferIntoView(_mainEditView.getCurrentBufferID(), MAIN_VIEW);
|
||||||
loadBufferIntoView(_subEditView.getCurrentBufferID(), SUB_VIEW);
|
loadBufferIntoView(_subEditView.getCurrentBufferID(), SUB_VIEW);
|
||||||
|
activateBuffer(_mainEditView.getCurrentBufferID(), MAIN_VIEW);
|
||||||
|
activateBuffer(_subEditView.getCurrentBufferID(), SUB_VIEW);
|
||||||
MainFileManager->increaseDocNr(); //so next doc starts at 2
|
MainFileManager->increaseDocNr(); //so next doc starts at 2
|
||||||
|
|
||||||
::SetFocus(_mainEditView.getHSelf());
|
::SetFocus(_mainEditView.getHSelf());
|
||||||
|
@ -953,7 +953,7 @@ void ScintillaEditView::defineDocType(LangType typeDoc)
|
|||||||
execute(SCI_SETUSETABS, !((NppParameters::getInstance())->getNppGUI())._tabReplacedBySpace);
|
execute(SCI_SETUSETABS, !((NppParameters::getInstance())->getNppGUI())._tabReplacedBySpace);
|
||||||
|
|
||||||
int bitsNeeded = execute(SCI_GETSTYLEBITSNEEDED);
|
int bitsNeeded = execute(SCI_GETSTYLEBITSNEEDED);
|
||||||
if (oldBits != bitsNeeded)
|
//if (oldBits != bitsNeeded)
|
||||||
execute(SCI_SETSTYLEBITS, bitsNeeded);
|
execute(SCI_SETSTYLEBITS, bitsNeeded);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user