diff options
author | nyamatongwe <unknown> | 2012-07-02 22:21:34 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2012-07-02 22:21:34 +1000 |
commit | d554af8cdc92f445ae3d06aed75e6ffea86f178f (patch) | |
tree | d2688dddf327e33d3a9e58f7d1051260187b034f | |
parent | 1f2ab5d4563bfcda43a25e4b778ad81d6b4fe790 (diff) | |
download | scintilla-mirror-d554af8cdc92f445ae3d06aed75e6ffea86f178f.tar.gz |
When line starts with 0 width character, do not allow end of previous line
to be part of block caret range.
-rw-r--r-- | src/Editor.cxx | 2 |
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 |