mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-04-09 06:02:15 +00:00
Merge 32a8141504 into ed8209cc35
This commit is contained in:
commit
87ee4ab635
@ -862,6 +862,12 @@ void RichText::Paint()
|
||||
if ( m_LineBreaks.IsValidIndex( lineBreakIndexIndex ) && m_LineBreaks[lineBreakIndexIndex] < iLim )
|
||||
iLim = m_LineBreaks[lineBreakIndexIndex];
|
||||
|
||||
// Stop when entering or exiting the selected range
|
||||
if ( i < selection0 && iLim >= selection0 )
|
||||
iLim = selection0;
|
||||
if ( i >= selection0 && i < selection1 && iLim >= selection1 )
|
||||
iLim = selection1;
|
||||
|
||||
// Handle non-drawing characters specially
|
||||
for ( int iT = i; iT < iLim; iT++ )
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user