diff options
| author | nyamatongwe <devnull@localhost> | 2003-07-21 00:12:16 +0000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2003-07-21 00:12:16 +0000 |
| commit | e3d845a0576ce327d75c82a54b02eb0798252412 (patch) | |
| tree | 958d0cb0fd800f9aec673cd0e57f39d3d03d9395 /src | |
| parent | a0eacaa8e926774b4825e3f8f4a0dde22e2da4d8 (diff) | |
| download | scintilla-mirror-e3d845a0576ce327d75c82a54b02eb0798252412.tar.gz | |
Fixed bug where assertions may not have been appearing when they should.
Diffstat (limited to 'src')
| -rw-r--r-- | src/DocumentAccessor.cxx | 4 |
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 |
