diff options
author | Marko Njezic <unknown> | 2011-07-25 15:17:53 +0200 |
---|---|---|
committer | Marko Njezic <unknown> | 2011-07-25 15:17:53 +0200 |
commit | d9d1771d20e748db4a424616a3d66f2125c383e1 (patch) | |
tree | 0cb19ef78de92cdcf7e436036a69a97fc9fd5626 | |
parent | e9e37fd4c12bc844749fe084e93d28f2ec44df92 (diff) | |
download | scintilla-mirror-d9d1771d20e748db4a424616a3d66f2125c383e1.tar.gz |
Properly set atLineStart depending on startPos. Bug #3377148.
-rw-r--r-- | lexlib/StyleContext.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lexlib/StyleContext.h b/lexlib/StyleContext.h index 15d216bd1..c2d223e3f 100644 --- a/lexlib/StyleContext.h +++ b/lexlib/StyleContext.h @@ -55,7 +55,6 @@ public: styler(styler_), endPos(startPos + length), currentPos(startPos), - atLineStart(true), atLineEnd(false), state(initStyle & chMask), // Mask off all bits which aren't in the chMask. chPrev(0), @@ -63,6 +62,7 @@ public: chNext(0) { styler.StartAt(startPos, chMask); styler.StartSegment(startPos); + atLineStart = static_cast<unsigned int>(styler.LineStart(styler.GetLine(startPos))) == startPos; unsigned int pos = currentPos; ch = static_cast<unsigned char>(styler.SafeGetCharAt(pos)); if (styler.IsLeadByte(static_cast<char>(ch))) { |