         path = @getHighlightPath info.model, info.style
         path.draw @highlightCtx
       else
-        delete @markedLines[line]
+        delete @markedLines[id]
 
     for id, info of @extraMarks
       if @inTree info.model

    if head.type is 'newline'
      return false

    key = @markedBlockKey++

    @markedBlocks[key] = {


    @redrawHighlights()

    # Return `key`, so that the caller can
    # remove the line mark later with unmark(key)
    return key

  Editor::unmark = (key) ->
