       @stackChanges(changes)
 
     @subscribe @displayBuffer, 'tokenized.minimap', =>
+      @tokenized = true
       @requestUpdate()
 
   stackChanges: (changes) ->


  update: =>
    return unless @editorView?
    return unless @displayBuffer.tokenizedBuffer.fullyTokenized

    #reset canvas virtual width/height
    @lineCanvas[0].width = @lineCanvas[0].offsetWidth

    @tokenColorCache = {}
    @decorationColorCache = {}
    @initializeDecorations()
    @tokenized = false

    @offscreenCanvas = document.createElement('canvas')
    @offscreenCtxt = @offscreenCanvas.getContext('2d')
