aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <devnull@localhost>2016-01-07 11:38:30 +1100
committerNeil <devnull@localhost>2016-01-07 11:38:30 +1100
commita0f99f45638f0d10e7682db40b649c3a7bde0e34 (patch)
tree20ad63f080d62f8dd60c041bcccaae940ca9569e
parent1042e27ed099c82a7277d65d0dc6686c8b68064b (diff)
downloadscintilla-mirror-a0f99f45638f0d10e7682db40b649c3a7bde0e34.tar.gz
Fix bug with final line in escape sequence recognition mode.
-rw-r--r--doc/ScintillaHistory.html3
-rw-r--r--lexers/LexErrorList.cxx1
2 files changed, 4 insertions, 0 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html
index 40a768a62..fa910eef3 100644
--- a/doc/ScintillaHistory.html
+++ b/doc/ScintillaHistory.html
@@ -523,6 +523,9 @@
Errorlist lexer highlights warning messages from the Microsoft linker.
</li>
<li>
+ Errorlist lexer fixes bug with final line in escape sequence recognition mode.
+ </li>
+ <li>
Lua lexer includes '&amp;' and '|' bitwise operators for Lua 5.3.
<a href="http://sourceforge.net/p/scintilla/bugs/1790/">Bug #1790</a>.
</li>
diff --git a/lexers/LexErrorList.cxx b/lexers/LexErrorList.cxx
index 56ae86594..d6fe5ee77 100644
--- a/lexers/LexErrorList.cxx
+++ b/lexers/LexErrorList.cxx
@@ -378,6 +378,7 @@ static void ColouriseErrorListDoc(Sci_PositionU startPos, Sci_Position length, i
}
}
if (linePos > 0) { // Last line does not have ending characters
+ lineBuffer[linePos] = '\0';
ColouriseErrorListLine(lineBuffer, linePos, startPos + length - 1, styler, valueSeparate, escapeSequences);
}
}