Fix folding not occuring over entire document

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@306 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
harrybharry 2008-09-01 22:08:26 +00:00
parent aa1f014acb
commit 90f5488b59
1 changed files with 3 additions and 3 deletions

View File

@ -1206,7 +1206,7 @@ void ScintillaEditView::bufferUpdated(Buffer * buffer, int mask) {
void ScintillaEditView::collapse(int level2Collapse, bool mode)
{
//execute(SCI_COLOURISE, 0, -1); //TODO: is this needed?
execute(SCI_COLOURISE, 0, -1); //make sure folding is done right (no cut-offs)
int maxLine = execute(SCI_GETLINECOUNT);
for (int line = 0; line < maxLine; line++)
@ -1226,7 +1226,7 @@ void ScintillaEditView::collapse(int level2Collapse, bool mode)
void ScintillaEditView::foldCurrentPos(bool mode)
{
//execute(SCI_COLOURISE, 0, -1);
execute(SCI_COLOURISE, 0, -1); //make sure folding is done right (no cut-offs)
int currentLine = this->getCurrentLineNumber();
int headerLine;
@ -1247,7 +1247,7 @@ void ScintillaEditView::foldCurrentPos(bool mode)
void ScintillaEditView::foldAll(bool mode)
{
//execute(SCI_COLOURISE, 0, -1);
execute(SCI_COLOURISE, 0, -1); //make sure folding is done right (no cut-offs)
int maxLine = execute(SCI_GETLINECOUNT);
for (int line = 0; line < maxLine; line++)