From a0f99f45638f0d10e7682db40b649c3a7bde0e34 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 7 Jan 2016 11:38:30 +1100 Subject: Fix bug with final line in escape sequence recognition mode. --- doc/ScintillaHistory.html | 3 +++ lexers/LexErrorList.cxx | 1 + 2 files changed, 4 insertions(+) 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.
  • + Errorlist lexer fixes bug with final line in escape sequence recognition mode. +
  • +
  • Lua lexer includes '&' and '|' bitwise operators for Lua 5.3. Bug #1790.
  • 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); } } -- cgit v1.2.3