comparison dwtx/jface/text/reconciler/DirtyRegion.d @ 162:1a5b8f8129df

...
author Frank Benoit <benoit@tionex.de>
date Mon, 08 Sep 2008 00:51:37 +0200
parents 7d818bd32d63
children
comparison
equal deleted inserted replaced
161:f8d52b926852 162:1a5b8f8129df
123 void mergeWith(DirtyRegion dr) { 123 void mergeWith(DirtyRegion dr) {
124 int start= Math.min(fOffset, dr.fOffset); 124 int start= Math.min(fOffset, dr.fOffset);
125 int end= Math.max(fOffset + fLength, dr.fOffset + dr.fLength); 125 int end= Math.max(fOffset + fLength, dr.fOffset + dr.fLength);
126 fOffset= start; 126 fOffset= start;
127 fLength= end - start; 127 fLength= end - start;
128 fText= (dr.fText is null ? fText : (fText is null) ? dr.fText : fText + dr.fText); 128 fText= (dr.fText is null ? fText : (fText is null) ? dr.fText : fText ~ dr.fText);
129 } 129 }
130 } 130 }