Skip to content
Snippets Groups Projects
Commit ae98a500 authored by George Nachman's avatar George Nachman
Browse files

Adhoc build 3.1.20170424_215714

parent 0b38ab65
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -65,16 +65,14 @@ static void iTermMakeBackgroundColorRun(iTermBackgroundColorRun *run,
assert(width > 0);
assert(row >= 0);
assert(charRange.location < width);
assert(charRange.location + charRange.length <= width);
 
NSMutableArray *runs = [NSMutableArray array];
iTermBackgroundColorRun previous;
iTermBackgroundColorRun current;
BOOL first = YES;
int j;
for (j = charRange.location; j < charRange.location + charRange.length; j++) {
for (j = MAX(0, charRange.location); j < charRange.location + charRange.length && j < width; j++) {
int x = j;
assert(j < width);
if (theLine[j].code == DWC_RIGHT) {
x = j - 1;
if (x < 0) {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment