[GB.QT4.EXT]
* BUG: Fix a crash in folding procedure, by strictly folding between procedure limits, and by not trying to be clever with comments. git-svn-id: svn://localhost/gambas/trunk@4125 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
2e398f2a63
commit
6ad8880c78
1 changed files with 4 additions and 2 deletions
|
@ -2473,8 +2473,10 @@ void GEditor::foldLine(int row, bool no_refresh)
|
|||
if (end < 0)
|
||||
end = numLines() - 1;
|
||||
else
|
||||
end--;
|
||||
/*else
|
||||
{
|
||||
for(;;)
|
||||
while (end > start)
|
||||
{
|
||||
end--;
|
||||
l = doc->lines.at(end);
|
||||
|
@ -2482,7 +2484,7 @@ void GEditor::foldLine(int row, bool no_refresh)
|
|||
if (!l->highlight || (l->highlight[0].state != GLine::Comment && l->highlight[0].state != GLine::Help))
|
||||
break;
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
pos = -1;
|
||||
for (i = 0; i < fold.count(); i++)
|
||||
|
|
Loading…
Reference in a new issue