diff --git a/lib/minimap-render-view.coffee b/lib/minimap-render-view.coffee index 74bfa42e..c30fd303 100644 --- a/lib/minimap-render-view.coffee +++ b/lib/minimap-render-view.coffee @@ -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}|