From d554af8cdc92f445ae3d06aed75e6ffea86f178f Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 2 Jul 2012 22:21:34 +1000 Subject: When line starts with 0 width character, do not allow end of previous line to be part of block caret range. --- src/Editor.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index 2b0221dd8..f7ecd743f 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3243,6 +3243,8 @@ void Editor::DrawBlockCaret(Surface *surface, ViewStyle &vsDraw, LineLayout *ll, // See if the next character shares horizontal space, if so we'll // need to draw that too. + if (offsetFirstChar < 0) + offsetFirstChar = 0; numCharsToDraw = offsetLastChar - offsetFirstChar; while ((offsetLastChar < ll->LineStart(subLine + 1)) && (offsetLastChar <= ll->numCharsInLine)) { // Update posAfter to point to the 2nd next char, this is where -- cgit v1.2.3