Skip to content

Commit

Permalink
Fixes #49378
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdima committed May 28, 2018
1 parent 0ab3785 commit 8874886
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/vs/editor/browser/viewParts/minimap/minimap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,11 @@ export class Minimap extends ViewPart {
minimapCharRenderer.x1BlockRenderChar(target, dx, dy, tokenColor, backgroundColor, useLighterFont);
}
dx += charWidth;

if (dx > maxDx) {
// hit edge of minimap
return;
}
}
}
}
Expand Down

0 comments on commit 8874886

Please sign in to comment.