diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2011-07-06 12:17:36 +0000 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2011-07-06 12:17:36 +0000 |
commit | 61c639e3dbb9070523e09c58e4cd7b4b5bf974c1 (patch) | |
tree | f394a241584349f89cddb2b5e3005afc1248679d /scintilla/lexlib/Accessor.cxx | |
parent | 5245d934f4fb495b8b014e9c02d6918e931a43a1 (diff) | |
download | notepad2-mod-61c639e3dbb9070523e09c58e4cd7b4b5bf974c1.zip notepad2-mod-61c639e3dbb9070523e09c58e4cd7b4b5bf974c1.tar.gz notepad2-mod-61c639e3dbb9070523e09c58e4cd7b4b5bf974c1.tar.bz2 |
update scintilla
git-svn-id: https://notepad2-mod.googlecode.com/svn/trunk@554 28bd50df-7adb-d945-0439-6e466c6a13cc
Diffstat (limited to 'scintilla/lexlib/Accessor.cxx')
-rw-r--r-- | scintilla/lexlib/Accessor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scintilla/lexlib/Accessor.cxx b/scintilla/lexlib/Accessor.cxx index c180665..7491166 100644 --- a/scintilla/lexlib/Accessor.cxx +++ b/scintilla/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
|