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:
parent
aa1f014acb
commit
90f5488b59
|
@ -1206,7 +1206,7 @@ void ScintillaEditView::bufferUpdated(Buffer * buffer, int mask) {
|
||||||
|
|
||||||
void ScintillaEditView::collapse(int level2Collapse, bool mode)
|
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);
|
int maxLine = execute(SCI_GETLINECOUNT);
|
||||||
|
|
||||||
for (int line = 0; line < maxLine; line++)
|
for (int line = 0; line < maxLine; line++)
|
||||||
|
@ -1226,7 +1226,7 @@ void ScintillaEditView::collapse(int level2Collapse, bool mode)
|
||||||
|
|
||||||
void ScintillaEditView::foldCurrentPos(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 currentLine = this->getCurrentLineNumber();
|
||||||
|
|
||||||
int headerLine;
|
int headerLine;
|
||||||
|
@ -1247,7 +1247,7 @@ void ScintillaEditView::foldCurrentPos(bool mode)
|
||||||
|
|
||||||
void ScintillaEditView::foldAll(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);
|
int maxLine = execute(SCI_GETLINECOUNT);
|
||||||
|
|
||||||
for (int line = 0; line < maxLine; line++)
|
for (int line = 0; line < maxLine; line++)
|
||||||
|
|
Loading…
Reference in New Issue