diff options
| author | nyamatongwe <devnull@localhost> | 2009-07-08 10:02:07 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2009-07-08 10:02:07 +0000 | 
| commit | 00a99b814014f00cea5c64f205b8a701a8b69b58 (patch) | |
| tree | 261a3e48203901fceca58d2a1ed539c93104bce9 /src/PositionCache.cxx | |
| parent | c6fefca9f746db86605e4a9c6a8b76423d570f0b (diff) | |
| download | scintilla-mirror-00a99b814014f00cea5c64f205b8a701a8b69b58.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);  | 
