diff options
Diffstat (limited to 'src/plugins/pythoneditor/pythoneditor.cpp')
-rw-r--r-- | src/plugins/pythoneditor/pythoneditor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/pythoneditor/pythoneditor.cpp b/src/plugins/pythoneditor/pythoneditor.cpp index 4c8b95ad92..d0f27ae63c 100644 --- a/src/plugins/pythoneditor/pythoneditor.cpp +++ b/src/plugins/pythoneditor/pythoneditor.cpp @@ -54,7 +54,7 @@ PythonEditorFactory::PythonEditorFactory() | TextEditorActionHandler::FollowSymbolUnderCursor); setDocumentCreator([] { return new TextDocument(Constants::C_PYTHONEDITOR_ID); }); - setIndenterCreator([] { return new PythonIndenter; }); + setIndenterCreator([](QTextDocument *doc) { return new PythonIndenter(doc); }); setSyntaxHighlighterCreator([] { return new PythonHighlighter; }); setCommentDefinition(Utils::CommentDefinition::HashStyle); setParenthesesMatchingEnabled(true); |