aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/Accessor.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2011-07-06 20:41:44 +1000
committernyamatongwe <unknown>2011-07-06 20:41:44 +1000
commit8897693e1398ac60cc3bea457a3dac82217e479a (patch)
tree32ee5ab4677f10204cc7be7abf07188080daad37 /lexlib/Accessor.cxx
parent18741c77ad7f854fcc68298facce771a0b532961 (diff)
downloadscintilla-mirror-8897693e1398ac60cc3bea457a3dac82217e479a.tar.gz
Fix problems with folding not extending to final line. Bug #3349157.
From Marko Njezic.
Diffstat (limited to 'lexlib/Accessor.cxx')
-rw-r--r--lexlib/Accessor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexlib/Accessor.cxx b/lexlib/Accessor.cxx
index 5adaaa2f7..65609598f 100644
--- a/lexlib/Accessor.cxx
+++ b/lexlib/Accessor.cxx
@@ -71,7 +71,7 @@ int Accessor::IndentAmount(int line, int *flags, PFNIsCommentLeader pfnIsComment
*flags = spaceFlags;
indent += SC_FOLDLEVELBASE;
// if completely empty line or the start of a comment...
- if ((ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r') ||
+ if ((LineStart(line) == Length()) || (ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r') ||
(pfnIsCommentLeader && (*pfnIsCommentLeader)(*this, pos, end-pos)))
return indent | SC_FOLDLEVELWHITEFLAG;
else