Skip to content

Commit

Permalink
🐎 Prevent drawing tokens past the canvas width
Browse files Browse the repository at this point in the history
  • Loading branch information
abe33 committed Dec 15, 2014
1 parent 4d60f63 commit c7ab242
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/mixins/canvas-drawer.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c7ab242

Please sign in to comment.