diff options
author | nyamatongwe <devnull@localhost> | 2011-07-06 20:41:44 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-07-06 20:41:44 +1000 |
commit | 1df0d69de851eb8953f1c83ef1460c88223465c1 (patch) | |
tree | 45ce0f37fd9a4f7b65307ef43b1c8897e8a82d9d /lexlib/Accessor.cxx | |
parent | f650e7fd9d5596e6c165e02ca5defdb4afc90131 (diff) | |
download | scintilla-mirror-1df0d69de851eb8953f1c83ef1460c88223465c1.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.cxx | 2 |
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 |