Skip to content

Commit

Permalink
🐛 Fix broken invisibles substitution when line is null
Browse files Browse the repository at this point in the history
Fixes #179
  • Loading branch information
abe33 committed Dec 17, 2014
1 parent 23990bb commit c0c30ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/minimap-render-view.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ class MinimapRenderView extends ScrollView

# Whitespaces can be substituted by other characters so we need
# to replace them when that's the case.
if line.invisibles?
if line? and line.invisibles?
re = ///
#{line.invisibles.cr}|
#{line.invisibles.eol}|
Expand Down

0 comments on commit c0c30ee

Please sign in to comment.