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:
harrybharry 2008-06-29 10:00:20 +00:00
parent b2a99264f4
commit 84bd5081b0
2 changed files with 3 additions and 1 deletions

View File

@ -6273,6 +6273,8 @@ LRESULT Notepad_plus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa
//Load initial docs into doctab
loadBufferIntoView(_mainEditView.getCurrentBufferID(), MAIN_VIEW);
loadBufferIntoView(_subEditView.getCurrentBufferID(), SUB_VIEW);
activateBuffer(_mainEditView.getCurrentBufferID(), MAIN_VIEW);
activateBuffer(_subEditView.getCurrentBufferID(), SUB_VIEW);
MainFileManager->increaseDocNr(); //so next doc starts at 2
::SetFocus(_mainEditView.getHSelf());

View File

@ -953,7 +953,7 @@ void ScintillaEditView::defineDocType(LangType typeDoc)
execute(SCI_SETUSETABS, !((NppParameters::getInstance())->getNppGUI())._tabReplacedBySpace);
int bitsNeeded = execute(SCI_GETSTYLEBITSNEEDED);
if (oldBits != bitsNeeded)
//if (oldBits != bitsNeeded)
execute(SCI_SETSTYLEBITS, bitsNeeded);
}