[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kate/part
From:       Christoph Cullmann <cullmann () kde ! org>
Date:       2005-04-17 20:56:17
Message-ID: 20050417205617.EED7C48A () office ! kde ! org
[Download RAW message or body]

CVS commit by cullmann: 

try  to fix this loop, seems to me like typo, but not sure if it is intented to skip the first element ;)
CCMAIL:kwrite-devel@kde.org


  M +3 -3      katehighlight.cpp   1.219


--- kdelibs/kate/part/katehighlight.cpp  #1.218:1.219
@@ -1582,5 +1582,5 @@ void KateHighlighting::doHighlight ( Kat
   if (m_foldingIndentationSensitive) {
     bool noindent=false;
-    for(int i=ctx.size();i--;i>0) {
+    for(int i=ctx.size()-1; i>0; --i) {
       if (contextNum(ctx[i])->noIndentationBasedFolding) {
         noindent=true;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic