diff --git a/src/markdowneditorfactory.cpp b/src/markdowneditorfactory.cpp index 16efe02..64307e2 100644 --- a/src/markdowneditorfactory.cpp +++ b/src/markdowneditorfactory.cpp @@ -26,8 +26,8 @@ namespace QtcMarkview { setEditorWidgetCreator ([]() { return new QMarkdownTextEdit; }); - setIndenterCreator ([]() { - return new TextEditor::NormalIndenter; + setIndenterCreator ([](QTextDocument *doc) { + return new TextEditor::NormalIndenter (doc); }); // setSyntaxHighlighterCreator() }