aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/Accessor.cxx
diff options
context:
space:
mode:
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