aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2012-07-02 22:21:34 +1000
committernyamatongwe <devnull@localhost>2012-07-02 22:21:34 +1000
commit8201eabffc8414af7cf20eb650a911f787427906 (patch)
tree4b46b79a20af8c59cfce9891fe204ab0382a8606 /src
parentab9f1f3c15d726cd9ce25c264744eac86e0a44e3 (diff)
downloadscintilla-mirror-8201eabffc8414af7cf20eb650a911f787427906.tar.gz
When line starts with 0 width character, do not allow end of previous line
to be part of block caret range.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx2
1 files changed, 2 insertions, 0 deletions
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