 getDefaultTocOptions = ->
   settings.getTocOptions()
 
-insertToc = ({editor, range, create, tocOptions}) ->
-  return unless create or tocOptions.update
+insertToc = ({editor, range, tocOptions}) ->
   headers = scanHeaders(editor)
   toc = """
     <!-- TOC START #{serializeTocOptions(tocOptions)} -->

    #{TOC_END}
    """

  toc += "\n\n" if create
  editor.setTextInBufferRange(range, toc)

# Public

  insertToc(
    editor: editor
    range: [point, point]
    tocOptions: getDefaultTocOptions()
  )

