From 0bd93b34f51760d0c15b989bb8f57d87dc58aba9 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 21 Jul 2003 00:12:16 +0000 Subject: Fixed bug where assertions may not have been appearing when they should. --- src/DocumentAccessor.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/DocumentAccessor.cxx b/src/DocumentAccessor.cxx index 595edf8ba..738eca7a0 100644 --- a/src/DocumentAccessor.cxx +++ b/src/DocumentAccessor.cxx @@ -130,8 +130,8 @@ void DocumentAccessor::Flush() { lenDoc = -1; if (validLen > 0) { pdoc->SetStyles(validLen, styleBuf); - validLen = 0; startPosStyling += validLen; + validLen = 0; } } @@ -174,7 +174,7 @@ int DocumentAccessor::IndentAmount(int line, int *flags, PFNIsCommentLeader pfnI *flags = spaceFlags; indent += SC_FOLDLEVELBASE; // if completely empty line or the start of a comment... - if ((ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r') || + if ((ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r') || (pfnIsCommentLeader && (*pfnIsCommentLeader)(*this, pos, end-pos)) ) return indent | SC_FOLDLEVELWHITEFLAG; else -- cgit v1.2.3