From kde-commits Sun Apr 17 20:56:17 2005 From: Christoph Cullmann Date: Sun, 17 Apr 2005 20:56:17 +0000 To: kde-commits Subject: kdelibs/kate/part Message-Id: <20050417205617.EED7C48A () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=111377139524051 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;