[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/kate/part
From: Christoph Cullmann <crossfire () babylon2k ! de>
Date: 2004-10-23 21:36:25
Message-ID: 20041023213625.8BF6516C22 () office ! kde ! org
[Download RAW message or body]
CVS commit by cullmann:
try to fix python folding
M +8 -4 katebuffer.cpp 1.205
M +2 -2 katehighlight.cpp 1.186
--- kdelibs/kate/part/katebuffer.cpp #1.204:1.205
@@ -989,6 +989,7 @@ bool KateBuffer::doHighlight (KateBufBlo
if (newIn)
{
- foldingList.resize (foldingList.size() + 1, QGArray::SpeedOptim);
- foldingList[foldingList.size()-1] = 1;
+ foldingList.resize (foldingList.size() + 2, QGArray::SpeedOptim);
+ foldingList[foldingList.size()-2] = 1;
+ foldingList[foldingList.size()-1] = 0;
}
@@ -1007,8 +1008,11 @@ bool KateBuffer::doHighlight (KateBufBlo
if (remIn > 0)
{
- foldingList.resize (foldingList.size() + remIn, QGArray::SpeedOptim);
+ foldingList.resize (foldingList.size() + (remIn*2), QGArray::SpeedOptim);
- for (uint z= foldingList.size()-remIn; z < foldingList.size(); z++)
+ for (uint z= foldingList.size()-(remIn*2); z < foldingList.size(); z=z+2)
+ {
foldingList[z] = -1;
+ foldingList[z+1] = 0;
+ }
}
}
--- kdelibs/kate/part/katehighlight.cpp #1.185:1.186
@@ -2180,6 +2180,6 @@ void KateHighlighting::readFoldingConfig
if (KateHlManager::self()->syntax->groupItemData(data,QString("indentationsensitive"))!="1")
m_foldingIndentationSensitive=false;
-// else
-// m_foldingIndentationSensitive=true;
+ else
+ m_foldingIndentationSensitive=true;
KateHlManager::self()->syntax->freeGroupInfo(data);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic