diff options
author | nyamatongwe <unknown> | 2009-07-08 10:02:07 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-07-08 10:02:07 +0000 |
commit | 27115c80992f89e771b14def710dcd544d252b52 (patch) | |
tree | 261a3e48203901fceca58d2a1ed539c93104bce9 /src/PositionCache.cxx | |
parent | e7cb60740dbbfdb5d472426d291014f410f7e176 (diff) | |
download | scintilla-mirror-27115c80992f89e771b14def710dcd544d252b52.tar.gz |
Draw discontiguous and virtual space selection in non-alpha mode.
Diffstat (limited to 'src/PositionCache.cxx')
-rw-r--r-- | src/PositionCache.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx index b727ec465..42f5fa3f3 100644 --- a/src/PositionCache.cxx +++ b/src/PositionCache.cxx @@ -412,13 +412,13 @@ BreakFinder::BreakFinder(LineLayout *ll_, int lineStart_, int lineEnd_, int posL nextBreak--; } + SelectionSegment segmentLine(SelectionPosition(posLineStart), SelectionPosition(posLineStart + lineEnd)); for (size_t r=0; r<ll->psel->Count(); r++) { - SelectionPosition spStart; - SelectionPosition spEnd; - if (ll->psel->Range(r).Intersect(posLineStart, posLineStart + lineEnd, spStart, spEnd)) { - Insert(spStart.Position() - posLineStart - 1); - Insert(spEnd.Position() - posLineStart - 1); - } + SelectionSegment portion = ll->psel->Range(r).Intersect(segmentLine); + if (portion.start.IsValid()) + Insert(portion.start.Position() - posLineStart - 1); + if (portion.end.IsValid()) + Insert(portion.end.Position() - posLineStart - 1); } Insert(ll->edgeColumn - 1); |