diff options
author | nyamatongwe <devnull@localhost> | 2003-09-05 08:19:17 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2003-09-05 08:19:17 +0000 |
commit | adfd59a0ce8e891f215f8cf9f38809020c69555b (patch) | |
tree | acc7ba5eda8daaa739d200c0887343963a48b676 /src | |
parent | a801b2c5093a0f0af87df7c3d2f5c2b2642d75b8 (diff) | |
download | scintilla-mirror-adfd59a0ce8e891f215f8cf9f38809020c69555b.tar.gz |
Ensure hotspot range initialised.
Bug fixed in LayoutLine when determining if line has not changed.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 1376787fa..b75a62ec6 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -53,6 +53,8 @@ LineLayout::LineLayout(int maxLineLength_) : styles(0), indicators(0), positions(0), + hsStart(0), + hsEnd(0), widthLine(wrapWidthInfinite), lines(1) { Resize(maxLineLength_); @@ -1684,13 +1686,12 @@ void Editor::LayoutLine(int line, Surface *surface, ViewStyle &vstyle, LineLayou int numCharsInLine = 0; // See if chars, styles, indicators, are all the same bool allSame = true; - char styleByte; - int styleMask = pdoc->stylingBitsMask; + const int styleMask = pdoc->stylingBitsMask; // Check base line layout for (int charInDoc = posLineStart; allSame && (charInDoc < posLineEnd); charInDoc++) { char chDoc = pdoc->CharAt(charInDoc); - styleByte = pdoc->StyleAt(charInDoc); - if (vstyle.viewEOL || (!IsEOLChar(chDoc != '\r'))) { + if (vstyle.viewEOL || (!IsEOLChar(chDoc))) { + char styleByte = pdoc->StyleAt(charInDoc); allSame = allSame && (ll->styles[numCharsInLine] == static_cast<char>(styleByte & styleMask)); allSame = allSame && |