aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2003-07-21 00:12:16 +0000
committernyamatongwe <unknown>2003-07-21 00:12:16 +0000
commit0bd93b34f51760d0c15b989bb8f57d87dc58aba9 (patch)
tree958d0cb0fd800f9aec673cd0e57f39d3d03d9395 /src
parent6910d55f0eeece3f94939a77f92ef86bfb8521e0 (diff)
downloadscintilla-mirror-0bd93b34f51760d0c15b989bb8f57d87dc58aba9.tar.gz
Fixed bug where assertions may not have been appearing when they should.
Diffstat (limited to 'src')
-rw-r--r--src/DocumentAccessor.cxx4
1 files changed, 2 insertions, 2 deletions
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