From c7ab242fc78c1be1adc911745c68cb1234211cbf Mon Sep 17 00:00:00 2001 From: abe33 Date: Tue, 16 Dec 2014 00:13:37 +0100 Subject: [PATCH] :racehorse: Prevent drawing tokens past the canvas width --- lib/mixins/canvas-drawer.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/mixins/canvas-drawer.coffee b/lib/mixins/canvas-drawer.coffee index aa22f2a3..82d678fa 100644 --- a/lib/mixins/canvas-drawer.coffee +++ b/lib/mixins/canvas-drawer.coffee @@ -181,6 +181,8 @@ class CanvasDrawer extends Mixin else x += w * charWidth + break if x > canvasWidth + # Finally the highlight over decorations are drawn. highlightDecorations = @minimap.decorationsByTypesForRow(firstRow + row, 'highlight', 'highlight-over', decorations) for decoration in highlightDecorations