From 88748864701d6fa3f443022b429ea6819dc51775 Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Mon, 28 May 2018 17:29:56 +0200 Subject: [PATCH] Fixes #49378 --- src/vs/editor/browser/viewParts/minimap/minimap.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/vs/editor/browser/viewParts/minimap/minimap.ts b/src/vs/editor/browser/viewParts/minimap/minimap.ts index 35ad7ff531b1c..5f8337eb5a915 100644 --- a/src/vs/editor/browser/viewParts/minimap/minimap.ts +++ b/src/vs/editor/browser/viewParts/minimap/minimap.ts @@ -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; + } } } }